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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x9a4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x104]
mov ebx, dword [esi]
push 0
push eax
mov dword [ebp - 0x990], ebx
call fcn.0044d9d0
mov ebx, dword [ebx + 0x360]
xor eax, eax
mov dword [ebp - 0x9a8], eax
mov edi, eax
mov dword [ebp - 0x998], eax
add esp, 0xc
mov dword [ebp - 0x99c], eax
mov eax, dword [ebp - 0x990]
mov dword [ebp - 0x9a0], 1
mov ecx, dword [eax + 0x360]
test ecx, ecx
je 0x43c607
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c4b8
sub ecx, edx
cmp ecx, 1
jbe 0x43c607
mov edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43c4cf
sub edx, ecx
push 0x16
pop ecx
cmp edx, ecx
jb 0x43c4ed
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c4e4
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x48e010]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43c508
push 0x1b
jmp 0x43cb30
cmp byte [ebx], 0x3a
jne 0x43c511
mov ecx, ebx
jmp 0x43c54a
push 0x3a
push ebx
call fcn.0044d8a0
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x98c], ecx
test ecx, ecx
je 0x43c53c
sub eax, ebx
push eax
push ebx
push edi
call fcn.0045b1b0
mov ecx, dword [ebp - 0x98c]
add esp, 0xc
jmp 0x43c54a
mov edx, edi
sub edx, ebx
mov al, byte [ebx]
mov byte [edx + ebx], al
inc ebx
test al, al
jne 0x43c540
test ecx, ecx
je 0x43c5ca
push 0x3a
push ecx
call fcn.0044d8a0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x43c5ca
push 0xa
lea eax, [ebx + 1]
push 0
push eax
call fcn.0045af98
push eax
call fcn.0043fb8b
movzx eax, ax
push 0x2d
push ebx
mov dword [ebp - 0x998], eax
call fcn.0044d8a0
add esp, 0x18
test eax, eax
je 0x43c5a8
push 0xa
inc eax
push 0
push eax
call fcn.0045af98
push eax
call fcn.0043fb8b
mov ecx, dword [ebp - 0x998]
add esp, 0x10
movzx eax, ax
jmp 0x43c5b1
mov ecx, dword [ebp - 0x998]
movzx eax, cx
mov dword [ebp - 0x99c], eax
cmp cx, ax
jbe 0x43c5ca
and dword [ebp - 0x99c], 0
and dword [ebp - 0x998], 0
cmp byte [edi], 0
je 0x43c5f7
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x3c]
push edi
push dword [eax + 4]
call fcn.00403290
add esp, 0x10
lea ecx, [ebp - 0x508]
test eax, eax
cmove ecx, edi
jmp 0x43c5f9
xor ecx, ecx
mov dword [ebp - 0x98c], ecx
test ecx, ecx
jne 0x43c69b
lea eax, [ebp - 0x994]
mov dword [ebp - 0x994], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43c665
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0042e92b
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x990]
call fcn.0042b67c
add esp, 0x14
test edi, edi
je 0x43cb2e
push edi
call dword [0x48e004]
pop ecx
jmp 0x43cb2e
push 0x401
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x984]
push eax
movzx eax, word [ebp - 0x988]
push eax
call fcn.0042fcc4
lea ecx, [ebp - 0x508]
add esp, 0x10
and dword [ebp - 0x9a0], 0
mov dword [ebp - 0x98c], ecx
lea eax, [ebp - 0x9a8]
push eax
push 0
push ecx
push esi
call fcn.004247a6
add esp, 0x10
cmp eax, 1
jne 0x43c6c2
lea eax, [ebp - 0x9a8]
push eax
push esi
call fcn.00424286
pop ecx
pop ecx
mov eax, dword [ebp - 0x9a8]
test eax, eax
je 0x43c6de
mov ebx, dword [eax]
push eax
push dword [ebp - 0x990]
call fcn.00424930
pop ecx
pop ecx
jmp 0x43c6e0
xor ebx, ebx
test ebx, ebx
jne 0x43c702
push dword [ebp - 0x98c]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x990]
call fcn.0042b67c
add esp, 0xc
jmp 0x43c650
test edi, edi
je 0x43c70e
push edi
call dword [0x48e004]
pop ecx
xor eax, eax
mov dword [ebp - 0x98c], eax
cmp dword [ebx + 8], 0
jne 0x43c722
mov eax, dword [esi + 0x74]
mov dword [ebx + 8], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43c74d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x98c], eax
test ebx, ebx
jne 0x43c716
jmp 0x43c753
mov eax, dword [ebp - 0x98c]
test ebx, ebx
jne 0x43c777
push eax
push esi
call fcn.0042e92b
push eax
push str.socket_failure:__s
push dword [ebp - 0x990]
call fcn.0042b67c
add esp, 0x14
jmp 0x43cb2e
push dword [ebx + 0x10]
lea eax, [ebp - 0x988]
push dword [ebx + 0x18]
push eax
call fcn.0044ba40
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x998]
mov ecx, dword [ebp - 0x99c]
cmp dx, cx
mov dword [ebp - 0x994], eax
movzx eax, dx
mov dword [ebp - 0x98c], eax
ja 0x43cb14
push 2
pop ecx
cmp word [ebp - 0x988], cx
jne 0x43c7cd
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x986], ax
push dword [ebp - 0x994]
lea eax, [ebp - 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43c8df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9a0], 0
je 0x43c860
mov ecx, 0x2741
cmp eax, ecx
jne 0x43c860
push ecx
push esi
call fcn.0042e92b
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push dword [ebp - 0x990]
call fcn.0042b712
add esp, 0x18
mov dword [ebp - 0x994], 0x80
lea eax, [ebp - 0x994]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43c881
mov eax, dword [ebp - 0x998]
and dword [ebp - 0x9a0], 0
movzx eax, ax
jmp 0x43c873
cmp eax, 0x2740
je 0x43c86c
cmp eax, 0xd
jne 0x43c8ae
mov eax, dword [ebp - 0x98c]
inc eax
mov ecx, dword [ebp - 0x99c]
cmp ax, cx
jmp 0x43c7a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0042e92b
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x990]
call fcn.0042b67c
push edi
push esi
call fcn.0042bb9b
add esp, 0x1c
jmp 0x43cb2e
push eax
push esi
call fcn.0042e92b
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x990]
call fcn.0042b67c
push edi
push esi
call fcn.0042bb9b
add esp, 0x20
jmp 0x43cb2e
mov eax, dword [ebp - 0x98c]
mov ecx, dword [ebp - 0x99c]
cmp ax, cx
ja 0x43cb14
lea eax, [ebp - 0x994]
mov dword [ebp - 0x994], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43c881
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43c940
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0042e92b
push eax
push str.socket_failure:__s
jmp 0x43c894
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0042477a
mov ebx, dword [ebp - 0x9ac]
add esp, 0xc
push 2
pop edx
cmp ebx, edx
je 0x43c9be
mov cx, word [ebp - 0x988]
cmp dword [esi + 0x1e0], 0
jne 0x43c976
test ebx, ebx
je 0x43c9b3
cmp ebx, 1
jne 0x43c980
cmp cx, dx
jne 0x43c9b3
movzx eax, cx
sub eax, edx
jne 0x43c9b3
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x9a0], eax
test ebx, ebx
je 0x43ca9f
cmp ebx, 1
je 0x43ca03
mov cx, word [ebp - 0x988]
push 2
pop edx
inc ebx
mov dword [ebp - 0x9ac], ebx
cmp ebx, edx
jne 0x43c969
mov ebx, dword [ebp - 0x9a4]
mov eax, dword [ebp - 0x9ac]
mov dword [esi + 0x434], eax
mov eax, dword [esi + 0x134]
cmp eax, 0xffffffff
je 0x43c9e4
push eax
push esi
call fcn.0042bb9b
pop ecx
pop ecx
mov dword [esi + 0x134], edi
mov dword [esi + 0x1c0], 1
mov dword [esi + 0x440], 0x1c
jmp 0x43cb10
lea edx, [ebp - 0x908]
lea ebx, [ebp - 0x104]
mov cl, byte [ebx]
test cl, cl
je 0x43ca34
cmp cl, 0x2e
movzx eax, cl
mov dword [ebp - 0x9a4], 0x2c
cmove eax, dword [ebp - 0x9a4]
mov byte [edx], al
inc edx
add ebx, 1
jne 0x43ca0f
mov eax, dword [ebp - 0x9a0]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.0042cfac
lea eax, [ebp - 0x908]
push eax
push str.PORT
lea eax, [esi + 0x3d0]
push str._s__s
push eax
call fcn.00440e5f
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x43c9c4
push ebx
call fcn.0042ea01
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x990]
call fcn.0042b67c
push edi
push esi
call fcn.0042bb9b
jmp 0x43cb06
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
push eax
push 2
pop ecx
xor eax, eax
cmp word [ebp - 0x988], cx
setne al
inc eax
push eax
push str.EPRT
lea eax, [esi + 0x3d0]
push str._s__d_s_hu
push eax
call fcn.00440e5f
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x43c9c4
push ebx
call fcn.0042ea01
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x990]
call fcn.0042b67c
push edi
push esi
call fcn.0042bb9b
mov dword [esi + 0x434], 1
add esp, 0x18
and dword [esi + 0x440], 0
mov eax, ebx
jmp 0x43cb31
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x990]
call fcn.0042b67c
push edi
push esi
call fcn.0042bb9b
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a31d
mov esp, ebp
pop ebp
ret