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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x34]
push 0x2f
push 0
push eax
mov esi, dword [ebx]
mov edi, edx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x618], esi
call fcn.00614d30
mov esi, dword [esi + 0x994]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x60c], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x624], 0
mov byte [ebp - 0x60d], 1
mov dword [ebp - 0x614], eax
test esi, esi
je 0x431beb
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431a78
sub ecx, edx
cmp ecx, 1
jbe 0x431beb
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431a90
sub ecx, edx
cmp ecx, 0x16
jae 0x431aa5
mov ecx, 0x16
jmp 0x431ab9
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431ab0
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x731678]
add esp, 8
mov dword [ebp - 0x614], eax
test eax, eax
jne 0x431ae8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x3a
je 0x431b1d
push 0x3a
push esi
call fcn.00614850
add esp, 8
mov dword [ebp - 0x628], eax
test eax, eax
je 0x431b74
mov ecx, eax
mov eax, dword [ebp - 0x614]
sub ecx, esi
push ecx
push esi
push eax
call fcn.0063cad0
mov esi, dword [ebp - 0x628]
add esp, 0xc
push 0x3a
push esi
call fcn.00614850
mov esi, eax
add esp, 8
test esi, esi
je 0x431b8d
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.00638600
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0x61c], eax
push 0x2d
push esi
call fcn.00614850
add esp, 8
test eax, eax
je 0x431b69
push 0xa
inc eax
push 0
push eax
call fcn.00638600
add esp, 0xc
movzx esi, ax
jmp 0x431b8f
mov eax, dword [ebp - 0x61c]
movzx esi, ax
jmp 0x431b8f
mov ecx, dword [ebp - 0x614]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x431b80
xor esi, esi
xor ecx, ecx
movzx eax, si
cmp word [ebp - 0x61c], si
cmovbe ecx, eax
mov eax, dword [ebp - 0x61c]
movzx edx, cx
xor ecx, ecx
cmp word [ebp - 0x61c], si
mov esi, dword [ebp - 0x614]
movzx eax, ax
cmovbe ecx, eax
movzx ecx, cx
cmp byte [esi], 0
je 0x431bd9
mov dword [ebp - 0x61c], ecx
mov eax, esi
mov ecx, edx
mov dword [ebp - 0x624], ecx
jmp 0x431c81
mov eax, ecx
mov dword [ebp - 0x61c], eax
mov eax, edx
mov dword [ebp - 0x624], eax
jmp 0x431bed
xor esi, esi
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0x80
push eax
lea eax, [ebp - 0x608]
push eax
push dword [ebx + 0x420]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x431c4a
push 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x618]
call fcn.004512d0
add esp, 0xc
push esi
jmp 0x4321d8
movzx ecx, word [ebp - 0x608]
lea eax, [ebp - 0x588]
push 0x401
push eax
lea edx, [ebp - 0x604]
call fcn.004430d0
add esp, 8
test eax, eax
je 0x4321e1
xor cl, cl
lea eax, [ebp - 0x588]
mov byte [ebp - 0x60d], cl
lea ecx, [ebp - 0x60c]
mov dword [ebp - 0x628], eax
push ecx
push 0
push 0
mov edx, eax
mov ecx, ebx
call fcn.00439390
add esp, 0xc
cmp eax, 1
jne 0x431cb4
push eax
lea edx, [ebp - 0x60c]
mov ecx, ebx
call fcn.004260a0
add esp, 4
mov edx, dword [ebp - 0x60c]
test edx, edx
je 0x4321b8
mov ecx, dword [ebp - 0x618]
mov esi, dword [edx]
call fcn.00439760
test esi, esi
je 0x4321b8
mov eax, dword [ebp - 0x614]
push eax
call dword [0x731670]
add esp, 4
mov dword [ebp - 0x60c], 0xffffffff
lea eax, [ebp - 0x60c]
mov edx, esi
push eax
push 0
mov ecx, ebx
call fcn.00428dc0
add esp, 8
mov dword [ebp - 0x628], eax
test eax, eax
je 0x431d4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x431cf1
push 0x100
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
push str.socket_failure:__s
push dword [ebp - 0x618]
call fcn.004512d0
add esp, 0xc
jmp 0x4321e1
push dword [esi + 0x10]
lea eax, [ebp - 0x608]
push dword [esi + 0x18]
push eax
call fcn.00614e90
mov eax, dword [esi + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x61c]
cmp cx, word [ebp - 0x624]
mov dword [ebp - 0x620], eax
movzx eax, cx
mov ecx, dword [ebp - 0x60c]
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x60c], ecx
ja 0x432196
cmp word [ebp - 0x608], 2
jne 0x431daf
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x60c]
mov word [ebp - 0x606], ax
push dword [ebp - 0x620]
lea eax, [ebp - 0x608]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x431f06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x60d], 0
je 0x431e4f
cmp eax, 0x2741
jne 0x431e4f
push 0x100
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
mov eax, dword [ebp - 0x614]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0x618]
call fcn.004511c0
add esp, 0x10
mov dword [ebp - 0x620], 0x80
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x608]
push eax
push dword [ebx + 0x420]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x431e80
mov eax, dword [ebp - 0x61c]
xor cl, cl
movzx eax, ax
mov byte [ebp - 0x60d], cl
jmp 0x431e62
cmp eax, 0x2740
je 0x431e5b
cmp eax, 0xd
jne 0x431ec1
mov eax, dword [ebp - 0x614]
inc eax
mov dword [ebp - 0x614], eax
cmp ax, word [ebp - 0x624]
ja 0x432196
mov ecx, dword [ebp - 0x60c]
jmp 0x431d91
push 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x618]
call fcn.004512d0
mov edx, dword [ebp - 0x60c]
add esp, 0xc
mov ecx, ebx
call fcn.00428d10
jmp 0x4321e1
push 0x100
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
mov eax, dword [ebp - 0x614]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x618]
call fcn.004512d0
mov edx, dword [ebp - 0x60c]
add esp, 0x10
mov ecx, ebx
call fcn.00428d10
jmp 0x4321e1
mov eax, dword [ebp - 0x614]
cmp ax, word [ebp - 0x624]
ja 0x432196
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0x80
push eax
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x60c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x431e80
push 1
push dword [ebp - 0x60c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x431f7d
push 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0045a2e0
add esp, 4
push eax
push str.socket_failure:__s
jmp 0x431ea1
mov byte [ebp - 0x34], 0
mov eax, dword [esi + 4]
sub eax, 2
jne 0x431fa2
mov edx, dword [esi + 0x18]
lea eax, [ebp - 0x34]
push 0x2f
push eax
add edx, 4
mov ecx, 2
call fcn.004430d0
add esp, 8
cmp edi, 2
je 0x431fff
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x608]
cmp byte [ebx + 0x52c], 0
jne 0x431fc1
test edi, edi
je 0x431ff9
cmp edi, 1
jne 0x431fcc
cmp cx, 2
jne 0x431ff9
movzx eax, cx
sub eax, 2
jne 0x431ff9
push dword [ebp - 0x606]
call esi
movzx eax, ax
mov dword [ebp - 0x624], eax
test edi, edi
je 0x43210d
cmp edi, 1
je 0x432054
mov cx, word [ebp - 0x608]
inc edi
cmp edi, 2
jne 0x431fb4
mov esi, dword [ebp - 0x628]
mov dword [ebx + 0x684], edi
mov edx, dword [ebx + 0x424]
cmp edx, 0xffffffff
je 0x43201d
mov ecx, ebx
call fcn.00428d10
mov eax, dword [ebp - 0x60c]
mov dword [ebx + 0x424], eax
mov eax, esi
mov byte [ebx + 0x517], 0
mov byte [ebx + 0x515], 1
mov dword [ebx + 0x690], 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x80]
mov ebx, 0x2c
lea esi, [ebp - 0x34]
nop
mov cl, byte [esi]
test cl, cl
je 0x432077
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebx
mov byte [edx], al
inc edx
add esi, 1
jne 0x432060
mov eax, dword [ebp - 0x624]
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.004472f0
mov ebx, dword [ebp - 0x62c]
lea eax, [ebp - 0x80]
add esp, 0x14
push eax
push 0x710a91
lea eax, [ebx + 0x608]
push 0x716f04
push eax
call fcn.0044caa0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432005
mov ecx, esi
call fcn.00459b20
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x618]
call fcn.004512d0
mov edx, dword [ebp - 0x60c]
add esp, 0xc
mov ecx, ebx
call fcn.00428d10
mov dword [ebx + 0x690], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x608], 2
setne al
inc eax
push eax
push str.EPRT
lea eax, [ebx + 0x608]
push str._s__d_s_hu
push eax
call fcn.0044caa0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x432005
mov ecx, esi
call fcn.00459b20
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x618]
call fcn.004512d0
mov edx, dword [ebp - 0x60c]
add esp, 0xc
mov ecx, ebx
call fcn.00428d10
mov dword [ebx + 0x684], 1
mov eax, esi
mov dword [ebx + 0x690], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x618]
call fcn.004512d0
mov edx, dword [ebp - 0x60c]
add esp, 8
mov ecx, ebx
call fcn.00428d10
jmp 0x4321e1
push dword [ebp - 0x628]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x618]
call fcn.004512d0
mov eax, dword [ebp - 0x614]
add esp, 0xc
push eax
call dword [0x731670]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00610840
mov esp, ebp
pop ebp
ret