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

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x751f00]
xor eax, esp
mov dword [esp + 0x9ac], eax
push ebx
push ebp
mov ebp, dword [esp + 0x9c0]
push esi
mov esi, dword [ebp]
push edi
push 0xff
xor edi, edi
lea eax, [esp + 0xb5]
push edi
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0xbc], 0
call fcn.0055e5f0
mov esi, dword [esi + 0x444]
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], ebx
cmp esi, edi
je 0x4288bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4287a3
sub eax, edx
cmp eax, 1
jbe 0x4288bd
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4287c0
sub eax, edx
cmp eax, 0x16
jae 0x4287d5
mov eax, 0x16
jmp 0x4287e9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4287e0
sub eax, edx
inc eax
push 1
push eax
call dword [0x75ccd8]
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
cmp ebx, edi
jne 0x42880a
mov eax, 0x1b
jmp 0x428cfe
cmp byte [esi], 0x3a
jne 0x42887b
mov edi, esi
test edi, edi
je 0x42886f
push 0x3a
push edi
call fcn.00562bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x42886f
push 0xa
lea edx, [esi + 1]
push 0
push edx
call fcn.00567989
add esp, 0xc
movzx edi, ax
push 0x2d
push esi
mov dword [esp + 0x30], edi
call fcn.00562bf0
add esp, 8
test eax, eax
je 0x4288b2
push 0xa
xor esi, esi
inc eax
push esi
push eax
call fcn.00567989
movzx eax, ax
add esp, 0xc
mov dword [esp + 0x20], eax
cmp di, ax
jbe 0x42886f
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
cmp byte [ebx], 0
je 0x4288bb
mov esi, ebx
jmp 0x42894f
push 0x3a
push esi
call fcn.00562bf0
mov edi, eax
add esp, 8
test edi, edi
je 0x4288a0
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebx
call fcn.00563170
add esp, 0xc
jmp 0x428811
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4288a6
jmp 0x42886f
movzx eax, di
mov dword [esp + 0x20], eax
jmp 0x42886f
xor edi, edi
mov eax, dword [ebp + 0x1a0]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x428914
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x1c]
call fcn.0040f9d0
push ebx
call dword [0x75cccc]
add esp, 0xc
mov eax, 0x1e
jmp 0x428cfe
movzx eax, word [esp + 0x30]
sub eax, 2
je 0x42892b
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x428944
lea ecx, [esp + 0x34]
push 0x401
push ecx
lea esi, [esp + 0x5b8]
call fcn.00431340
add esp, 8
lea esi, [esp + 0x5b0]
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
push ebp
mov dword [esp + 0x34], esi
call fcn.0040e140
add esp, 0x10
cmp eax, 1
jne 0x428978
lea eax, [esp + 0x10]
push eax
mov edi, ebp
call fcn.0040eb50
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x428997
mov esi, dword [esp + 0x14]
mov ebx, dword [edi]
call fcn.0040e2e0
test ebx, ebx
jne 0x4289a2
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
jmp 0x4288f7
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x75cccc]
mov edi, ebx
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
mov dword [esp + 0x18], edi
jmp 0x4289c6
mov edi, dword [esp + 0x18]
push ebp
lea ebx, [esp + 0x14]
xor edx, edx
mov ecx, edi
call fcn.0040da80
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x4289f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4289c2
jmp 0x4289f8
test edi, edi
jne 0x428a1f
push ebp
mov edi, esi
call fcn.00431bd0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.socket_failure:__s
call fcn.0040f9d0
add esp, 8
mov eax, 0x1e
jmp 0x428cfe
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0055f610
mov eax, dword [esp + 0x34]
mov edx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edx
movzx esi, ax
cmp ax, word [esp + 0x20]
ja 0x428b72
cmp word [esp + 0x30], 2
jne 0x428a61
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x428b6b
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp dword [esp + 0x2c], 0
je 0x428ae7
cmp eax, 0x2741
jne 0x428ae7
push ebp
mov edi, eax
call fcn.00431bd0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
call fcn.0040f940
mov eax, dword [ebp + 0x1a0]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x428b01
movzx esi, word [esp + 0x28]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x428af4
cmp eax, 0x2740
je 0x428af3
cmp eax, 0xd
jne 0x428b35
inc esi
cmp si, word [esp + 0x20]
jbe 0x428a4d
jmp 0x428b72
call ebx
push ebp
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.0040f9d0
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0040da20
mov eax, 0x1e
jmp 0x428cfe
push ebp
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
movzx ecx, si
push ecx
push str.bind_port_hu__failed:__s
call fcn.0040f9d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, ebp
call fcn.0040da20
mov eax, 0x1e
jmp 0x428cfe
cmp si, word [esp + 0x20]
jbe 0x428b98
mov eax, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
call fcn.0040f9d0
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, ebp
call fcn.0040da20
mov eax, 0x1e
jmp 0x428cfe
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x428bef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.0040f9d0
mov eax, esi
add esp, 8
mov esi, ebp
call fcn.0040da20
mov eax, 0x1e
jmp 0x428cfe
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x428c32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.socket_failure:__s
call fcn.0040f9d0
mov eax, esi
add esp, 8
mov esi, ebp
call fcn.0040da20
mov eax, 0x1e
jmp 0x428cfe
mov eax, dword [edi + 4]
sub eax, 2
jne 0x428c55
mov edi, dword [edi + 0x18]
add edi, 4
push 0x100
push edi
lea esi, [esp + 0xb8]
call fcn.00431340
add esp, 8
mov esi, dword [esp + 0x9cc]
cmp esi, 2
je 0x428cae
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [ebp + 0x2ec], 0
jne 0x428c79
test esi, esi
je 0x428ca8
cmp esi, 1
jne 0x428c84
cmp cx, 2
jne 0x428ca8
movzx eax, cx
sub eax, 2
jne 0x428ca8
mov ecx, dword [esp + 0x32]
push ecx
call ebx
movzx edi, ax
test esi, esi
je 0x428d17
cmp esi, 1
je 0x428d8c
mov cx, word [esp + 0x30]
inc esi
cmp esi, 2
jne 0x428c6c
mov ebx, dword [esp + 0x24]
mov dword [ebp + 0x560], esi
mov eax, dword [ebp + 0x1a4]
cmp eax, 0xffffffff
je 0x428cd4
mov esi, ebp
call fcn.0040da20
mov dword [ebp + 0x1a4], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x5b0], 0
mov dword [ebp + 0x1a4], ecx
mov dword [ebp + 0x2d0], 1
mov dword [ebp + 0x56c], 0x1c
mov eax, ebx
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055e7fd
add esp, 0x9b4
ret
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, di
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
lea edi, [ebp + 0x4f8]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
mov ecx, edi
call fcn.0043b510
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x428cb2
call fcn.00431440
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_EPRT_command:__s
call fcn.0040f9d0
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0040da20
mov dword [edi + 0x68], 1
mov dword [ebp + 0x56c], 0
jmp 0x428cfc
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
lea ebx, [ebx]
mov al, byte [edx]
test al, al
je 0x428db7
cmp al, 0x2e
jne 0x428daf
mov byte [ecx], 0x2c
jmp 0x428db1
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x428da0
movzx eax, di
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.0041e370
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push str.PORT
push 0x721940
lea ecx, [ebp + 0x4f8]
call fcn.0043b510
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x428cb2
call fcn.00431440
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_PORT_command:__s
call fcn.0040f9d0
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0040da20
mov dword [ebp + 0x56c], 0
jmp 0x428cfc