Function at 0x443410
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x9ac], eax
mov eax, dword [esp + 0x9b4]
push ebx
mov ebx, dword [edi]
push ebp
push esi
push 0xff
xor ebp, ebp
lea ecx, [esp + 0xb9]
push ebp
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xc0], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebx + 0xa64]
mov dword [esp + 0x30], ebp
mov eax, dword [ebx + 0xa64]
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x4435f5
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443490
sub eax, edx
cmp eax, 1
jbe 0x4435f5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4434a7
sub eax, edx
cmp eax, 0x41
jae 0x4434bc
mov eax, 0x41
jmp 0x4434ca
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4434c1
sub eax, edx
inc eax
push 1
push eax
call dword [0x47605c]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4434fc
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
mov al, byte [esi]
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x443664
lea edx, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x34], edx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4435a5
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, ebp
sub ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
test ebp, ebp
je 0x4435a5
push 0x3a
push ebp
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x4435a5
mov ebp, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea eax, [esi + 1]
push 0
push eax
call ebp
push eax
call fcn.0042afe0
movzx ecx, ax
push 0x2d
push esi
mov dword [esp + 0x30], ecx
call ebx
add esp, 0x18
test eax, eax
je 0x4436d5
push 0xa
inc eax
push 0
push eax
call ebp
push eax
call fcn.0042afe0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x18], ax
jbe 0x4435a5
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x4435f5
mov ecx, dword [edi + 0x8c]
mov edx, dword [edi + 0x50]
push 0x401
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.00456210
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0041f810
add esp, 0x18
sub eax, 0
je 0x4436e3
dec eax
je 0x443647
dec eax
je 0x443721
mov edx, dword [edi + 0x1a8]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4436e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454480
push eax
mov eax, dword [esp + 0x20]
push str.getsockname___failed:__s
push eax
call fcn.00428bd0
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x476050]
add esp, 0x18
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
cmp al, 0x3a
jne 0x44366f
mov ebp, esi
jmp 0x44353d
push 0x3a
push esi
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4436be
lea eax, [esp + 0x34]
push eax
push esi
push 0x17
call fcn.00431340
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 1
jne 0x4436b3
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4436a4
jmp 0x4435a5
mov ecx, ebp
sub ecx, esi
push ecx
push esi
jmp 0x443533
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4436c6
jmp 0x4435a5
movzx edx, word [esp + 0x18]
mov dword [esp + 0x1c], edx
jmp 0x4435a5
mov esi, ebx
jmp 0x443728
movzx eax, word [esp + 0x34]
push 0x401
lea edx, [esp + 0x1b8]
push edx
cmp eax, 0x17
je 0x443706
lea ecx, [esp + 0x40]
push ecx
push eax
jmp 0x44370d
lea eax, [esp + 0x44]
push eax
push 0x17
call fcn.00436a40
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x28], 0
lea esi, [esp + 0x1b4]
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push edi
call fcn.00420570
add esp, 0x10
cmp eax, 1
jne 0x44374c
lea edx, [esp + 0x24]
push edx
push edi
call fcn.0041e020
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x443768
mov ebp, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00420790
add esp, 8
test ebp, ebp
jne 0x44379f
mov ecx, dword [esp + 0x14]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.00428bd0
push ebx
call dword [0x476050]
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x476050]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0xc], 0xffffffff
xor esi, esi
lea ecx, [ecx]
lea eax, [esp + 0xc]
push eax
push 0
push ebp
push edi
call fcn.0042de90
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4437e6
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x4437c0
jmp 0x4437ea
test ebp, ebp
jne 0x443821
push esi
push edi
call fcn.00454480
mov ecx, dword [esp + 0x1c]
push eax
push str.socket_failure:__s
push ecx
call fcn.00428bd0
add esp, 0x14
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x20], edx
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x443985
mov ebx, dword [esp + 0x28]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0xc]
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x44397e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4438d7
cmp eax, 0x2741
jne 0x4438d7
push eax
push edi
call fcn.00454480
push eax
movzx eax, si
mov esi, dword [esp + 0x20]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00428a80
mov eax, dword [edi + 0x1a8]
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4438f4
movzx esi, word [esp + 0x18]
xor ebx, ebx
jmp 0x4438e4
cmp eax, 0x2740
je 0x4438e3
cmp eax, 0xd
jne 0x443938
inc esi
cmp si, word [esp + 0x1c]
jbe 0x443853
jmp 0x443985
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454480
push eax
push str.getsockname___failed:__s
push esi
call fcn.00428bd0
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.0042de10
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
push eax
push edi
call fcn.00454480
push eax
mov eax, dword [esp + 0x20]
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.00428bd0
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.0042de10
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
cmp si, word [esp + 0x1c]
jbe 0x4439bf
mov edx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.00428bd0
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0042de10
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x443a28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454480
push eax
push str.getsockname___failed:__s
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00428bd0
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0042de10
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
mov eax, dword [esp + 0xc]
push 1
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x443a4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454480
push eax
push str.socket_failure:__s
jmp 0x4439f3
push 0x100
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.0041fad0
add esp, 0xc
cmp dword [edi + 0x2f0], 0
jne 0x443a80
cmp dword [edi + 0x2c8], 0
je 0x443a80
mov dword [edi + 0x2f0], 1
mov ebp, dword [esp + 0x30]
cmp ebp, 2
je 0x443ae2
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x34]
cmp dword [edi + 0x2f0], 0
jne 0x443aa1
test ebp, ebp
je 0x443adc
cmp ebp, 1
jne 0x443aac
cmp cx, 2
jne 0x443adc
movzx eax, cx
sub eax, 2
je 0x443ac0
sub eax, 0x15
jne 0x443adc
mov ecx, dword [esp + 0x36]
push ecx
jmp 0x443ac5
mov edx, dword [esp + 0x36]
push edx
call ebx
movzx esi, ax
test ebp, ebp
je 0x443b43
cmp ebp, 1
je 0x443bb9
mov cx, word [esp + 0x34]
inc ebp
cmp ebp, 2
jne 0x443a94
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x640], ebp
mov eax, dword [edi + 0x1ac]
cmp eax, 0xffffffff
je 0x443b0b
push eax
push edi
call fcn.0042de10
add esp, 8
mov dword [edi + 0x1ac], 0xffffffff
mov eax, dword [esp + 0xc]
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x2d4], 1
mov dword [edi + 0x64c], 0x1c
mov ecx, dword [esp + 0x9b8]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00418a8f
add esp, 0x9b0
ret
xor edx, edx
cmp word [esp + 0x34], 2
movzx eax, si
setne dl
push eax
lea ecx, [esp + 0xb8]
push ecx
lea esi, [edi + 0x5c8]
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.00459280
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x443ae6
push ebx
call fcn.00453d60
push eax
mov eax, dword [esp + 0x1c]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.00428bd0
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.0042de10
mov dword [esi + 0x78], 1
add esp, 0x18
mov dword [edi + 0x64c], 0
jmp 0x443b29
lea ecx, [esp + 0x5b8]
lea edx, [esp + 0xb4]
mov al, byte [edx]
test al, al
je 0x443bdc
cmp al, 0x2e
jne 0x443bd6
mov byte [ecx], 0x2c
jmp 0x443bd8
mov byte [ecx], al
inc ecx
inc edx
jne 0x443bc7
movzx eax, si
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.0042fcb0
lea eax, [esp + 0x5cc]
push eax
push str.PORT
lea eax, [edi + 0x5c8]
push 0x465484
push eax
call fcn.00459280
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x443ae6
push ebx
call fcn.00453d60
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.00428bd0
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.0042de10
add esp, 0x18
mov dword [edi + 0x64c], 0
jmp 0x443b29