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

Disassembly:
sub esp, 0x628
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x62c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
push 0x2e
xor edi, edi
lea edx, [esp + 0xc1]
push edi
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0xc8], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebx + 0x584]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x426cb2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426ab8
sub eax, edx
cmp eax, 1
jbe 0x426cb2
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426ad0
sub eax, edx
cmp eax, 0x41
jae 0x426ae5
mov eax, 0x41
jmp 0x426af9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426af0
sub eax, edx
inc eax
push 1
push eax
call dword [0x45e010]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x426b1b
mov dword [esp + 0x28], 0x1b
jmp 0x4270cb
mov al, byte [esi]
mov ebp, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x426bcf
push 0x5d
push esi
lea ebx, [esi + 1]
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x426c57
mov ecx, dword [esp + 0x10]
sub eax, ebx
push eax
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov ebx, dword [esp + 0x40]
add esp, 0xc
test edi, edi
je 0x426c5b
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x426c5b
mov edi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
push eax
call fcn.00413650
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x38], eax
call ebp
add esp, 0x18
test eax, eax
je 0x426c4c
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.00413650
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x14], eax
cmp word [esp + 0x20], ax
jbe 0x426c5b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x426c5b
cmp al, 0x3a
jne 0x426bda
mov edi, esi
jmp 0x426b56
push 0x3a
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x426c35
lea edx, [esp + 0x3c]
push edx
push esi
push 0x17
call fcn.004427d0
add esp, 0xc
cmp eax, 1
jne 0x426c1c
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x426c10
jmp 0x426c5b
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
jmp 0x426b56
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x426c40
jmp 0x426c5b
movzx ecx, word [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x426c5b
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x426cb2
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x4ec]
mov ecx, dword [edi + 0x40]
push 0x401
lea edx, [esp + 0x234]
push edx
push esi
push eax
add ecx, 0x10
push ecx
call fcn.00442480
mov edx, dword [edi + 0x40]
add esp, 4
push eax
mov eax, dword [edx]
push eax
call fcn.0040fe60
add esp, 0x18
sub eax, 0
je 0x426d53
dec eax
je 0x4270cb
dec eax
je 0x426d4c
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov ecx, dword [eax + 0x120]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x426d06
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040afd0
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00414090
add esp, 0x18
jmp 0x4270cb
movzx eax, word [esp + 0x3c]
push 0x401
cmp eax, 0x17
je 0x426d25
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
jmp 0x426d34
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0x17
call fcn.0043e340
add esp, 0x10
test eax, eax
je 0x4270cb
mov dword [esp + 0x30], 0
lea esi, [esp + 0x230]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push esi
push ebx
call fcn.004331a0
add esp, 0x14
cmp eax, 1
jne 0x426d79
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00413a60
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x426d91
mov edi, dword [eax]
push eax
push ebx
call fcn.00433490
add esp, 8
test edi, edi
jne 0x426da5
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.00414090
add esp, 0xc
jmp 0x4270cb
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
lea ecx, [ecx]
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 0x4f7]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
push edi
push ebx
call fcn.0043c250
add esp, 0x14
test eax, eax
je 0x426dde
call ebp
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x426db0
jmp 0x426de2
test edi, edi
jne 0x426e09
push 0x100
lea ecx, [esp + 0x134]
push ecx
push esi
call fcn.0040afd0
push eax
push str.socket_failure:__s
push ebx
call fcn.00414090
add esp, 0x18
jmp 0x4270cb
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
call sub.MSVCR100.dll_memcpy
mov ebp, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edx
movzx esi, bp
cmp bp, word [esp + 0x14]
ja 0x426f2f
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x18]
mov word [esp + 0x3e], ax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x426f28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x426ed2
cmp eax, 0x2741
jne 0x426ed2
push 0x100
lea eax, [esp + 0x134]
push eax
push 0x2741
call fcn.0040afd0
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.004141d0
mov ecx, dword [esp + 0x40]
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov edx, dword [ecx + 0x120]
push eax
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x426f63
movzx esi, bp
mov dword [esp + 0x30], eax
jmp 0x426edf
cmp eax, 0x2740
je 0x426ede
cmp eax, 0xd
jne 0x426efd
inc esi
cmp si, word [esp + 0x14]
jbe 0x426e37
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.00414090
add esp, 8
jmp 0x4270cb
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.0040afd0
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebx
call fcn.00414090
add esp, 0x1c
jmp 0x4270cb
cmp si, word [esp + 0x14]
jbe 0x426f42
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.00414090
add esp, 8
jmp 0x4270cb
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x426f75
push 0x100
lea eax, [esp + 0x134]
push eax
jmp 0x426ce6
mov ecx, dword [esp + 0x18]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x426fb3
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040afd0
push eax
push str.socket_failure:__s
push ebx
call fcn.00414090
add esp, 0x18
jmp 0x4270cb
push 0x2f
lea eax, [esp + 0xc0]
push eax
push edi
call fcn.00432720
mov ebp, dword [esp + 0x30]
add esp, 0xc
cmp dword [ebp + 0x220], 0
jne 0x426fe6
cmp dword [ebp + 0x208], 0
je 0x426fe6
mov dword [ebp + 0x220], 1
mov edi, dword [esp + 0x38]
cmp edi, 2
je 0x427046
mov cx, word [esp + 0x3c]
cmp dword [ebp + 0x220], 0
jne 0x427001
test edi, edi
je 0x427040
cmp edi, 1
jne 0x42700c
cmp cx, 2
jne 0x427040
movzx eax, cx
sub eax, 2
je 0x427020
sub eax, 0x15
jne 0x427040
mov ecx, dword [esp + 0x3e]
push ecx
jmp 0x427025
mov edx, dword [esp + 0x3e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
test edi, edi
je 0x42707b
cmp edi, 1
je 0x42711a
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x426ff4
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
push ebx
mov dword [ebp + 0x498], edi
call fcn.0043dca0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4270cb
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x18], 0xffffffff
mov byte [edx + 0x4a6], 0x1c
jmp 0x4270d9
xor edx, edx
cmp word [esp + 0x3c], 2
movzx eax, si
push eax
setne dl
lea ecx, [esp + 0xc0]
push ecx
lea eax, [ebp + 0x408]
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push eax
push ebx
call fcn.00440e40
add esp, 0x1c
mov dword [esp + 0x28], eax
test eax, eax
je 0x427046
push eax
call fcn.0040a510
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.00414090
add esp, 0x10
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x28]
mov byte [eax + 0x4a6], 0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x4270f1
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
call fcn.0043c320
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [0x45e004]
mov ecx, dword [esp + 0x638]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c8e4
add esp, 0x628
ret
lea ecx, [esp + 0xec]
lea edx, [esp + 0xbc]
mov al, byte [edx]
test al, al
je 0x42713d
cmp al, 0x2e
jne 0x427137
mov byte [ecx], 0x2c
jmp 0x427139
mov byte [ecx], al
inc ecx
inc edx
jne 0x427128
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.004194d0
lea eax, [esp + 0x100]
push eax
push str.PORT
push 0x452d34
lea eax, [ebp + 0x408]
push eax
push ebx
call fcn.00440e40
add esp, 0x28
mov dword [esp + 0x28], eax
test eax, eax
je 0x427046
push eax
call fcn.0040a510
push eax
push str.Failure_sending_PORT_command:__s
jmp 0x4270c2