Function at 0x1004b2e9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x9ac], eax
mov eax, dword [esp + 0x9b8]
or dword [esp], 0xffffffff
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c0]
push edi
mov edi, dword [esi]
push 0xff
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xbd]
push 0
push eax
mov byte [esp + 0xc4], 0
call fcn.10059510
mov ebx, dword [edi + 0x484]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ebp, eax
mov eax, dword [edi + 0x484]
add esp, 0xc
mov dword [esp + 0x34], 1
test eax, eax
je 0x1004b49c
push eax
call fcn.100596a0
pop ecx
cmp eax, 1
jbe 0x1004b49c
push ebx
call fcn.100596a0
pop ecx
push 0x16
pop ecx
cmp eax, ecx
jb 0x1004b38b
push ebx
call fcn.100596a0
pop ecx
mov ecx, eax
lea eax, [ecx + 1]
push 1
push eax
call dword [0x100a5350]
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x1004b3a7
push 0x1b
pop eax
jmp 0x1004b84d
cmp byte [ebx], 0x3a
je 0x1004b3dc
push 0x3a
push ebx
call fcn.1005c2c0
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004b3cf
mov ecx, eax
sub ecx, ebx
push ecx
push ebx
push ebp
call fcn.1005cb80
add esp, 0xc
jmp 0x1004b3d8
push ebx
push ebp
call fcn.1005d8f0
pop ecx
pop ecx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1004b450
push 0x3a
push ebx
call fcn.1005c2c0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1004b450
push 0xa
lea ecx, [ebx + 1]
push 0
push ecx
call fcn.1005dc7e
push eax
call fcn.10039f57
movzx eax, ax
push 0x2d
push ebx
mov dword [esp + 0x38], eax
call fcn.1005c2c0
add esp, 0x18
test eax, eax
je 0x1004b436
push 0xa
inc eax
push 0
push eax
call fcn.1005dc7e
push eax
call fcn.10039f57
mov ecx, dword [esp + 0x30]
add esp, 0x10
movzx eax, ax
jmp 0x1004b43d
mov ecx, dword [esp + 0x20]
movzx eax, cx
mov dword [esp + 0x24], eax
cmp cx, ax
jbe 0x1004b450
and dword [esp + 0x24], 0
and dword [esp + 0x20], 0
cmp byte [ebp], 0
je 0x1004b496
push 0x401
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x54]
push ebp
push dword [esi + 0x90]
push dword [eax + 0x18]
call fcn.100330fc
pop ecx
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call fcn.100330fc
add esp, 0x18
sub eax, 0
je 0x1004b492
dec eax
je 0x1004b4e1
dec eax
jne 0x1004b49c
jmp 0x1004b50d
mov ebx, ebp
jmp 0x1004b498
xor ebx, ebx
test ebx, ebx
jne 0x1004b514
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1a8]
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004b4e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.1003cb1a
push eax
push str.getsockname___failed:__s
push edi
call fcn.1003054c
push ebp
call dword [0x100a5344]
add esp, 0x18
push 0x1e
jmp 0x1004b3a1
push 0x401
lea eax, [esp + 0x1bc]
push eax
lea eax, [esp + 0x44]
push eax
movzx eax, word [esp + 0x44]
push eax
call fcn.1003d39a
add esp, 0x10
and dword [esp + 0x34], 0
lea ebx, [esp + 0x1b8]
lea eax, [esp + 0x30]
push eax
push 0
push ebx
push esi
call fcn.100283f3
add esp, 0x10
cmp eax, 1
jne 0x1004b537
lea eax, [esp + 0x30]
push eax
push esi
call fcn.10027c26
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1004b554
mov eax, dword [ecx]
push ecx
push edi
mov dword [esp + 0x1c], eax
call fcn.10028549
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
jmp 0x1004b55a
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1004b579
push ebx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.1003054c
push ebp
call dword [0x100a5344]
add esp, 0x10
jmp 0x1004b4e1
push ebp
call dword [0x100a5344]
or dword [esp + 0x14], 0xffffffff
and dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x18]
pop ecx
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push esi
call fcn.100313cd
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1004b5b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x1004b58f
jmp 0x1004b5bd
mov eax, dword [esp + 0x18]
test ebp, ebp
jne 0x1004b5dc
push eax
push esi
call fcn.1003cb1a
push eax
push str.socket_failure:__s
push edi
call fcn.1003054c
add esp, 0x14
jmp 0x1004b4e1
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push dword [ebp + 0x18]
push eax
call fcn.10058e40
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
movzx edx, cx
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x18], eax
movzx ecx, cx
mov dword [esp + 0x14], 2
jmp 0x1004b6d1
mov ecx, dword [esp + 0x14]
cmp word [esp + 0x38], cx
jne 0x1004b633
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3a], ax
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1004b737
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x34], 0
je 0x1004b6ae
mov ecx, 0x2741
cmp eax, ecx
jne 0x1004b6ae
push ecx
push esi
call fcn.1003cb1a
push eax
push dword [esp + 0x38]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push edi
call fcn.10030603
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1a8]
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004b6df
mov eax, dword [esp + 0x20]
and dword [esp + 0x34], 0
movzx eax, ax
jmp 0x1004b6bf
cmp eax, 0x2740
je 0x1004b6ba
cmp eax, 0xd
jne 0x1004b70a
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
movzx ecx, ax
mov eax, dword [esp + 0x24]
movzx edx, ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
cmp ecx, edx
jle 0x1004b61c
jmp 0x1004b73b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.1003cb1a
push eax
push str.getsockname___failed:__s
push edi
call fcn.1003054c
push dword [esp + 0x24]
push esi
call fcn.10030c93
add esp, 0x1c
jmp 0x1004b4e1
push eax
push esi
call fcn.1003cb1a
push eax
mov eax, dword [esp + 0x24]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.1003054c
push dword [esp + 0x28]
push esi
call fcn.10030c93
add esp, 0x20
jmp 0x1004b4e1
mov eax, dword [esp + 0x18]
cmp ax, word [esp + 0x24]
jbe 0x1004b75c
push str.bind___failed__we_ran_out_of_ports_
push edi
call fcn.1003054c
push dword [esp + 0x18]
push esi
call fcn.10030c93
jmp 0x1004b571
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004b6df
push 1
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1004b7a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.1003cb1a
push eax
push str.socket_failure:__s
jmp 0x1004b6f2
push 0x100
lea eax, [esp + 0xbc]
push eax
push ebp
call fcn.100283cb
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
add esp, 0xc
cmp edx, ebp
je 0x1004b81d
mov cx, word [esp + 0x38]
cmp dword [esi + 0x414], 0
jne 0x1004b7dc
test edx, edx
je 0x1004b814
cmp edx, 1
jne 0x1004b7e6
cmp cx, bp
jne 0x1004b814
movzx eax, cx
sub eax, ebp
jne 0x1004b814
push dword [esp + 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x28]
movzx ebp, ax
test edx, edx
je 0x1004b904
cmp edx, 1
je 0x1004b866
mov cx, word [esp + 0x38]
mov ebp, dword [esp + 0x14]
inc edx
mov dword [esp + 0x28], edx
cmp edx, ebp
jne 0x1004b7cf
lea ebp, [esi + 0x6b8]
push esi
mov dword [ebp + 0x74], edx
call fcn.10049414
mov eax, dword [esp + 0x14]
push 0x1c
push esi
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x3f8], 1
call fcn.10049405
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x9b0
ret
lea edx, [esp + 0x5bc]
lea ebx, [esp + 0xb8]
mov cl, byte [ebx]
test cl, cl
je 0x1004b893
movzx eax, cl
cmp cl, 0x2e
mov dword [esp + 0x2c], 0x2c
cmove eax, dword [esp + 0x2c]
mov byte [edx], al
inc edx
inc ebx
jne 0x1004b874
mov ecx, ebp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.1003af45
lea eax, [esp + 0x5d0]
push eax
push str.PORT
push 0x100948ec
lea ebp, [esi + 0x6b8]
push ebp
call fcn.10052215
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x1004b961
push ebx
call fcn.1003cc07
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.1003054c
push dword [esp + 0x20]
push esi
call fcn.10030c93
push 0
push esi
call fcn.10049405
add esp, 0x20
jmp 0x1004b84b
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0xbc]
push eax
xor eax, eax
cmp word [esp + 0x40], cx
lea ebp, [esi + 0x6b8]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.10052215
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1004b961
push ebx
call fcn.1003cc07
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.1003054c
push dword [esp + 0x20]
push esi
call fcn.10030c93
mov dword [ebp + 0x74], 1
jmp 0x1004b8f4
mov edx, dword [esp + 0x28]
jmp 0x1004b823