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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x990], 0xffffffff
push ebx
push edi
mov edi, dword [esi]
xor ebx, ebx
push 0xff
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x103]
push ebx
push eax
mov dword [ebp - 0x994], edi
mov byte [ebp - 0x104], bl
call fcn.004de430
lea eax, [edi + 0x3ac]
mov edi, dword [eax]
mov dword [ebp - 0x9b0], ebx
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x9a0], ebx
mov dword [ebp - 0x9a4], ebx
mov dword [ebp - 0x9a8], 1
mov dword [ebp - 0x98c], ebx
cmp eax, ebx
je 0x4c95b7
push eax
call fcn.004ddcc0
pop ecx
cmp eax, 1
jbe 0x4c95b7
push edi
call fcn.004ddcc0
pop ecx
cmp eax, 0x16
jae 0x4c9482
push 0x16
pop eax
jmp 0x4c9489
push edi
call fcn.004ddcc0
pop ecx
inc eax
push 1
push eax
call dword [0x547058]
pop ecx
pop ecx
mov dword [ebp - 0x98c], eax
cmp eax, ebx
jne 0x4c94a7
push 0x1b
pop eax
jmp 0x4c99cf
cmp byte [edi], 0x3a
jne 0x4c94b4
mov dword [ebp - 0x998], edi
jmp 0x4c94ea
push 0x3a
push edi
call fcn.004df100
pop ecx
pop ecx
mov dword [ebp - 0x998], eax
cmp eax, ebx
je 0x4c94dc
sub eax, edi
push eax
push edi
push dword [ebp - 0x98c]
call fcn.004e2cd0
add esp, 0xc
jmp 0x4c94ea
push edi
push dword [ebp - 0x98c]
call fcn.004e3c90
pop ecx
pop ecx
cmp dword [ebp - 0x998], ebx
je 0x4c956b
push 0x3a
push dword [ebp - 0x998]
call fcn.004df100
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4c956b
push 0xa
lea eax, [edi + 1]
push ebx
push eax
call fcn.004e7180
push eax
call fcn.004d2662
movzx eax, ax
push 0x2d
push edi
mov dword [ebp - 0x9a0], eax
call fcn.004df100
add esp, 0x18
cmp eax, ebx
je 0x4c9549
push 0xa
inc eax
push ebx
push eax
call fcn.004e7180
push eax
call fcn.004d2662
add esp, 0x10
movzx eax, ax
jmp 0x4c9550
movzx eax, word [ebp - 0x9a0]
mov dword [ebp - 0x9a4], eax
cmp word [ebp - 0x9a0], ax
jbe 0x4c956b
mov dword [ebp - 0x9a4], ebx
mov dword [ebp - 0x9a0], ebx
mov eax, dword [ebp - 0x98c]
cmp byte [eax], bl
je 0x4c95ad
push 0x401
lea ecx, [ebp - 0x508]
push ecx
push eax
push dword [esi + 0x88]
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call fcn.004620cb
add esp, 0x14
sub eax, ebx
je 0x4c95a5
dec eax
je 0x4c9615
dec eax
jne 0x4c95b7
jmp 0x4c9645
mov edi, dword [ebp - 0x98c]
jmp 0x4c95af
xor edi, edi
cmp edi, ebx
jne 0x4c964b
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x154]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c961c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004bef9f
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
add esp, 0x14
cmp dword [ebp - 0x98c], ebx
je 0x4c9615
push dword [ebp - 0x98c]
call dword [0x54704c]
pop ecx
push 0x1e
jmp 0x4c94a1
push 0x401
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x984]
push eax
movzx eax, word [ebp - 0x988]
push eax
call fcn.004bf1c6
add esp, 0x10
mov dword [ebp - 0x9a8], ebx
lea edi, [ebp - 0x508]
lea eax, [ebp - 0x9b0]
push eax
push ebx
push edi
push esi
call fcn.004b2cdb
add esp, 0x10
cmp eax, 1
jne 0x4c9671
lea eax, [ebp - 0x9b0]
push eax
push esi
call fcn.004b27ac
pop ecx
pop ecx
mov eax, dword [ebp - 0x9b0]
cmp eax, ebx
je 0x4c9693
mov ecx, dword [eax]
push eax
push dword [ebp - 0x994]
mov dword [ebp - 0x998], ecx
call fcn.004b2e46
pop ecx
pop ecx
jmp 0x4c9699
mov dword [ebp - 0x998], ebx
cmp dword [ebp - 0x998], ebx
jne 0x4c96ba
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
add esp, 0xc
jmp 0x4c9600
cmp dword [ebp - 0x98c], ebx
je 0x4c96cf
push dword [ebp - 0x98c]
call dword [0x54704c]
pop ecx
or dword [ebp - 0x990], 0xffffffff
mov edi, dword [ebp - 0x998]
mov dword [ebp - 0x98c], ebx
lea eax, [ebp - 0x990]
push eax
push ebx
push edi
push esi
call fcn.004bcbad
add esp, 0x10
mov dword [ebp - 0x998], eax
cmp eax, ebx
je 0x4c9711
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0x98c], eax
cmp edi, ebx
jne 0x4c96e2
cmp edi, ebx
jne 0x4c973a
push dword [ebp - 0x98c]
push esi
call fcn.004bef9f
push eax
push str.socket_failure:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
add esp, 0x14
jmp 0x4c9615
push dword [edi + 0x10]
lea eax, [ebp - 0x988]
push dword [edi + 0x18]
push eax
call fcn.004ddd50
mov eax, dword [edi + 0x10]
movzx ebx, word [ebp - 0x9a0]
mov dword [ebp - 0x99c], eax
mov ax, word [ebp - 0x9a4]
add esp, 0xc
cmp word [ebp - 0x9a0], ax
ja 0x4c983f
cmp word [ebp - 0x988], 2
jne 0x4c978b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x986], ax
push dword [ebp - 0x99c]
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4c9832
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9a8], 0
je 0x4c9818
cmp eax, 0x2741
jne 0x4c9818
push eax
push esi
call fcn.004bef9f
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0x994]
call fcn.004ba661
add esp, 0x18
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x154]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4c9863
movzx ebx, word [ebp - 0x9a0]
and dword [ebp - 0x9a8], eax
jmp 0x4c9825
cmp eax, 0x2740
je 0x4c9824
cmp eax, 0xd
jne 0x4c9895
inc ebx
cmp bx, word [ebp - 0x9a4]
jbe 0x4c9773
cmp bx, word [ebp - 0x9a4]
jbe 0x4c98c5
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x994]
call fcn.004ba6cb
push dword [ebp - 0x990]
push esi
call fcn.004bcb5b
add esp, 0x10
jmp 0x4c9615
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004bef9f
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
push dword [ebp - 0x990]
push esi
call fcn.004bcb5b
add esp, 0x1c
jmp 0x4c9615
push eax
push esi
call fcn.004bef9f
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
push dword [ebp - 0x990]
push esi
call fcn.004bcb5b
add esp, 0x20
jmp 0x4c9615
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4c9863
push 1
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4c991b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004bef9f
push eax
push str.socket_failure:__s
jmp 0x4c9876
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.004b2a37
mov ebx, dword [ebp - 0x9ac]
add esp, 0xc
jmp 0x4c9982
cmp dword [esi + 0x210], 0
jne 0x4c9945
test ebx, ebx
je 0x4c997b
cmp ebx, 1
jne 0x4c9954
cmp word [ebp - 0x988], 2
jne 0x4c997b
movzx eax, word [ebp - 0x988]
dec eax
dec eax
jne 0x4c997b
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test ebx, ebx
je 0x4c99dd
cmp ebx, 1
je 0x4c9a4b
inc ebx
mov dword [ebp - 0x9ac], ebx
cmp ebx, 2
jne 0x4c9938
mov ebx, dword [ebp - 0x998]
mov eax, dword [ebp - 0x9ac]
mov dword [esi + 0x468], eax
mov eax, dword [esi + 0x158]
cmp eax, 0xffffffff
je 0x4c99ad
push eax
push esi
call fcn.004bcb5b
pop ecx
pop ecx
mov eax, dword [ebp - 0x990]
push 0x1c
mov dword [esi + 0x158], eax
mov dword [esi + 0x1f4], 1
pop eax
mov ecx, esi
call fcn.004c92ca
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret
push edi
lea eax, [ebp - 0x104]
push eax
xor eax, eax
cmp word [ebp - 0x988], 2
lea edi, [esi + 0x400]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
call fcn.004d69b1
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4c998d
push ebx
call fcn.004be889
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
push dword [ebp - 0x990]
push esi
call fcn.004bcb5b
mov dword [edi + 0x68], 1
add esp, 0x18
xor eax, eax
jmp 0x4c99c6
lea ecx, [ebp - 0x908]
lea edx, [ebp - 0x104]
mov al, byte [edx]
test al, al
je 0x4c9a6c
cmp al, 0x2e
jne 0x4c9a66
mov byte [ecx], 0x2c
jmp 0x4c9a68
mov byte [ecx], al
inc ecx
inc edx
jne 0x4c9a57
mov eax, edi
mov edx, edi
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.004bdd3a
lea eax, [ebp - 0x908]
push eax
push str.PORT
lea eax, [esi + 0x400]
push 0x527b44
push eax
call fcn.004d69b1
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x4c998d
push ebx
call fcn.004be889
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x994]
call fcn.004ba6cb
push dword [ebp - 0x990]
push esi
call fcn.004bcb5b
jmp 0x4c9a41