Function at 0x442d90
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 0x442f75
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442e10
sub eax, edx
cmp eax, 1
jbe 0x442f75
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442e27
sub eax, edx
cmp eax, 0x41
jae 0x442e3c
mov eax, 0x41
jmp 0x442e4a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442e41
sub eax, edx
inc eax
push 1
push eax
call dword [0x47605c]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x442e7c
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
add esp, 0x9b0
ret
mov al, byte [esi]
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x442fe4
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 0x442f25
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 0x442f25
push 0x3a
push ebp
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x442f25
mov ebp, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea eax, [esi + 1]
push 0
push eax
call ebp
push eax
call fcn.0042a8f0
movzx ecx, ax
push 0x2d
push esi
mov dword [esp + 0x30], ecx
call ebx
add esp, 0x18
test eax, eax
je 0x443055
push 0xa
inc eax
push 0
push eax
call ebp
push eax
call fcn.0042a8f0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x18], ax
jbe 0x442f25
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x442f75
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.00455b80
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0041f170
add esp, 0x18
sub eax, 0
je 0x443063
dec eax
je 0x442fc7
dec eax
je 0x4430a1
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 0x443067
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00453df0
push eax
mov eax, dword [esp + 0x20]
push str.getsockname___failed:__s
push eax
call fcn.00428510
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.004183ef
add esp, 0x9b0
ret
cmp al, 0x3a
jne 0x442fef
mov ebp, esi
jmp 0x442ebd
push 0x3a
push esi
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44303e
lea eax, [esp + 0x34]
push eax
push esi
push 0x17
call fcn.00430ca0
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 1
jne 0x443033
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 0x443024
jmp 0x442f25
mov ecx, ebp
sub ecx, esi
push ecx
push esi
jmp 0x442eb3
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 0x443046
jmp 0x442f25
movzx edx, word [esp + 0x18]
mov dword [esp + 0x1c], edx
jmp 0x442f25
mov esi, ebx
jmp 0x4430a8
movzx eax, word [esp + 0x34]
push 0x401
lea edx, [esp + 0x1b8]
push edx
cmp eax, 0x17
je 0x443086
lea ecx, [esp + 0x40]
push ecx
push eax
jmp 0x44308d
lea eax, [esp + 0x44]
push eax
push 0x17
call fcn.004363b0
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.0041fec0
add esp, 0x10
cmp eax, 1
jne 0x4430cc
lea edx, [esp + 0x24]
push edx
push edi
call fcn.0041d990
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4430e8
mov ebp, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004200e0
add esp, 8
test ebp, ebp
jne 0x44311f
mov ecx, dword [esp + 0x14]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.00428510
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.004183ef
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.0042d7e0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x443166
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x443140
jmp 0x44316a
test ebp, ebp
jne 0x4431a1
push esi
push edi
call fcn.00453df0
mov ecx, dword [esp + 0x1c]
push eax
push str.socket_failure:__s
push ecx
call fcn.00428510
add esp, 0x14
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
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 0x443305
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 0x4432fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x443257
cmp eax, 0x2741
jne 0x443257
push eax
push edi
call fcn.00453df0
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.004283c0
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 0x443274
movzx esi, word [esp + 0x18]
xor ebx, ebx
jmp 0x443264
cmp eax, 0x2740
je 0x443263
cmp eax, 0xd
jne 0x4432b8
inc esi
cmp si, word [esp + 0x1c]
jbe 0x4431d3
jmp 0x443305
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00453df0
push eax
push str.getsockname___failed:__s
push esi
call fcn.00428510
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.0042d760
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
add esp, 0x9b0
ret
push eax
push edi
call fcn.00453df0
push eax
mov eax, dword [esp + 0x20]
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.00428510
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.0042d760
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
add esp, 0x9b0
ret
cmp si, word [esp + 0x1c]
jbe 0x44333f
mov edx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.00428510
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0042d760
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
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 0x4433a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00453df0
push eax
push str.getsockname___failed:__s
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00428510
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0042d760
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.004183ef
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 0x4433ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00453df0
push eax
push str.socket_failure:__s
jmp 0x443373
push 0x100
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.0041f430
add esp, 0xc
cmp dword [edi + 0x2f0], 0
jne 0x443400
cmp dword [edi + 0x2c8], 0
je 0x443400
mov dword [edi + 0x2f0], 1
mov ebp, dword [esp + 0x30]
cmp ebp, 2
je 0x443462
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x34]
cmp dword [edi + 0x2f0], 0
jne 0x443421
test ebp, ebp
je 0x44345c
cmp ebp, 1
jne 0x44342c
cmp cx, 2
jne 0x44345c
movzx eax, cx
sub eax, 2
je 0x443440
sub eax, 0x15
jne 0x44345c
mov ecx, dword [esp + 0x36]
push ecx
jmp 0x443445
mov edx, dword [esp + 0x36]
push edx
call ebx
movzx esi, ax
test ebp, ebp
je 0x4434c3
cmp ebp, 1
je 0x443539
mov cx, word [esp + 0x34]
inc ebp
cmp ebp, 2
jne 0x443414
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x640], ebp
mov eax, dword [edi + 0x1ac]
cmp eax, 0xffffffff
je 0x44348b
push eax
push edi
call fcn.0042d760
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.004183ef
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.00458be0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x443466
push ebx
call fcn.004536d0
push eax
mov eax, dword [esp + 0x1c]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.00428510
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.0042d760
mov dword [esi + 0x78], 1
add esp, 0x18
mov dword [edi + 0x64c], 0
jmp 0x4434a9
lea ecx, [esp + 0x5b8]
lea edx, [esp + 0xb4]
mov al, byte [edx]
test al, al
je 0x44355c
cmp al, 0x2e
jne 0x443556
mov byte [ecx], 0x2c
jmp 0x443558
mov byte [ecx], al
inc ecx
inc edx
jne 0x443547
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.0042f610
lea eax, [esp + 0x5cc]
push eax
push str.PORT
lea eax, [edi + 0x5c8]
push 0x465484
push eax
call fcn.00458be0
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x443466
push ebx
call fcn.004536d0
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.00428510
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.0042d760
add esp, 0x18
mov dword [edi + 0x64c], 0
jmp 0x4434a9