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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x48f288]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x600], eax
add eax, 0x258
push 0x2f
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0x604], ebx
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x618], 0xffffffff
call fcn.00455010
mov esi, dword [ebx + 0x510]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x61c], eax
mov byte [ebp - 0x605], 1
mov dword [ebp - 0x60c], eax
test esi, esi
je 0x436179
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435f50
sub ecx, edx
cmp ecx, 1
jbe 0x436179
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435f67
sub ecx, edx
cmp ecx, 0x41
jae 0x435f7c
mov ecx, 0x41
jmp 0x435f8a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435f81
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x48f010]
add esp, 8
mov dword [ebp - 0x60c], eax
test eax, eax
jne 0x435fb3
mov esi, ebx
lea edi, [eax + 0x1b]
mov ebx, dword [ebp - 0x600]
jmp 0x43674a
mov al, byte [esi]
cmp al, 0x5b
jne 0x435fe5
push 0x5d
push esi
call fcn.00455170
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x436061
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x60c]
call fcn.0045e860
add esp, 0xc
jmp 0x436061
cmp al, 0x3a
jne 0x435fed
mov ebx, esi
jmp 0x436061
push 0x3a
push esi
call fcn.00455170
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43604c
lea eax, [ebp - 0x5fc]
push eax
push esi
push 0x17
call fcn.00449610
add esp, 0xc
cmp eax, 1
jne 0x436036
mov ecx, dword [ebp - 0x60c]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x436020
xor esi, esi
xor edx, edx
jmp 0x4360bb
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x60c]
call fcn.0045e860
add esp, 0xc
jmp 0x436061
mov ecx, dword [ebp - 0x60c]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x436054
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x4360bb
push 0x3a
push ebx
call fcn.00455170
mov ebx, eax
add esp, 8
xor edx, edx
test ebx, ebx
je 0x4360bb
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.0045d2f7
push eax
call fcn.0041eca0
push 0x2d
push ebx
movzx esi, ax
call fcn.00455170
add esp, 0x18
test eax, eax
je 0x4360b9
push 0xa
inc eax
push 0
push eax
call fcn.0045d2f7
push eax
call fcn.0041eca0
add esp, 0x10
movzx edx, ax
jmp 0x4360bb
mov edx, esi
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, si
movzx ebx, cx
xor ecx, ecx
cmp si, dx
cmovbe ecx, eax
mov eax, dword [ebp - 0x60c]
movzx esi, cx
cmp byte [eax], 0
je 0x436169
push 0x401
lea ecx, [ebp - 0x57c]
push ecx
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x31c]
mov eax, dword [eax + 0x40]
add eax, 0x10
push eax
call fcn.0044e290
add esp, 4
push eax
mov eax, dword [ebp - 0x600]
mov eax, dword [eax + 0x40]
push dword [eax]
call fcn.00401900
add esp, 0x18
sub eax, 0
je 0x436143
sub eax, 1
je 0x436739
sub eax, 1
jne 0x436151
lea eax, [ebp - 0x57c]
mov dword [ebp - 0x610], eax
jmp 0x436153
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x610], eax
jmp 0x436153
xor eax, eax
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x61c], ebx
test eax, eax
jne 0x436228
jmp 0x436179
mov eax, esi
mov dword [ebp - 0x624], eax
mov eax, ebx
mov dword [ebp - 0x61c], eax
mov ebx, dword [ebp - 0x600]
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x5fc]
mov dword [ebp - 0x614], 0x80
push eax
push dword [ebx + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4361d9
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040bb10
mov esi, dword [ebp - 0x604]
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041d280
add esp, 0x18
jmp 0x436745
cmp word [ebp - 0x5fc], 0x17
lea edx, [ebp - 0x5f4]
movzx eax, word [ebp - 0x5fc]
lea ecx, [ebp - 0x5f8]
cmove ecx, edx
lea edx, [ebp - 0x57c]
push 0x401
push edx
push ecx
push eax
call fcn.00445140
add esp, 0x10
test eax, eax
je 0x43673f
lea eax, [ebp - 0x57c]
mov byte [ebp - 0x605], 0
mov dword [ebp - 0x610], eax
mov esi, dword [ebp - 0x604]
lea ecx, [ebp - 0x62c]
push ecx
push 0
push 0
push eax
push esi
call fcn.004236f0
add esp, 0x14
cmp eax, 1
jne 0x436258
lea eax, [ebp - 0x62c]
push eax
push esi
call fcn.00415170
add esp, 8
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x43671c
mov ebx, dword [eax]
push eax
push esi
call fcn.004239f0
add esp, 8
test ebx, ebx
je 0x43671c
xor esi, esi
nop dword [eax]
lea eax, [ebp - 0x618]
push eax
mov eax, dword [ebp - 0x600]
movzx eax, byte [eax + 0x325]
push eax
push 0
push ebx
push dword [ebp - 0x604]
call fcn.00443a00
add esp, 0x14
test eax, eax
je 0x4362bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov esi, eax
test ebx, ebx
jne 0x436280
jmp 0x4362bf
test ebx, ebx
jne 0x4362f1
push 0x100
lea eax, [ebp - 0x178]
push eax
push esi
call fcn.0040bb10
mov esi, dword [ebp - 0x604]
push eax
push str.socket_failure:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x18
jmp 0x436745
push dword [ebx + 0x10]
lea eax, [ebp - 0x5fc]
push dword [ebx + 0x18]
push eax
call fcn.004553e0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x624]
cmp ax, word [ebp - 0x61c]
movzx esi, ax
ja 0x436700
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x614]
movzx eax, ax
mov word [ebp - 0x5fa], ax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43646c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x605], 0
je 0x4363eb
cmp eax, 0x2741
jne 0x4363eb
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.0040bb10
push eax
movzx eax, si
mov esi, dword [ebp - 0x604]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0041d340
add esp, 0x1c
mov dword [ebp - 0x614], 0x80
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x436404
mov eax, dword [ebp - 0x624]
movzx esi, ax
cmp si, word [ebp - 0x61c]
mov byte [ebp - 0x605], 0
jmp 0x43631f
cmp eax, 0x2740
je 0x4363f7
cmp eax, 0xd
jne 0x436436
inc esi
cmp si, word [ebp - 0x61c]
jmp 0x43631f
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040bb10
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x18
jmp 0x436745
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.0040bb10
push eax
movzx eax, si
mov esi, dword [ebp - 0x604]
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x1c
jmp 0x436745
cmp si, word [ebp - 0x61c]
ja 0x436700
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4364d9
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040bb10
mov esi, dword [ebp - 0x604]
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x18
jmp 0x436745
push 1
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x436523
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040bb10
mov esi, dword [ebp - 0x604]
push eax
push str.socket_failure:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x18
jmp 0x436745
push 0x2f
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.004236a0
mov eax, dword [ebp - 0x600]
add esp, 0xc
cmp byte [eax + 0x1d2], 0
jne 0x436551
cmp byte [eax + 0x1cc], 0
je 0x436551
mov byte [eax + 0x1d2], 1
cmp edi, 2
je 0x4365b9
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
cmp byte [eax + 0x1d2], 0
jne 0x436570
test edi, edi
je 0x4365ad
cmp edi, 1
jne 0x43657b
cmp cx, 2
jne 0x4365ad
movzx eax, cx
sub eax, 2
je 0x436588
sub eax, 0x15
jne 0x4365a7
push dword [ebp - 0x5fa]
call esi
movzx ebx, ax
test edi, edi
je 0x43669c
cmp edi, 1
je 0x436604
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x600]
inc edi
mov dword [ebp - 0x620], edi
cmp edi, 2
jne 0x436563
mov ebx, dword [ebp - 0x628]
mov esi, dword [ebp - 0x604]
lea eax, [ebp - 0x618]
mov dword [ebx + 0x88], edi
mov ebx, dword [ebp - 0x600]
push eax
push 1
push ebx
push esi
call fcn.00443750
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43674a
mov dword [ebp - 0x618], 0xffffffff
mov byte [ebp - 0x620], 0x1c
jmp 0x436751
lea edx, [ebp - 0x78]
mov edi, 0x2c
lea esi, [ebp - 0x34]
nop
mov cl, byte [esi]
test cl, cl
je 0x436627
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x436610
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00420b60
mov ebx, dword [ebp - 0x628]
lea eax, [ebp - 0x78]
mov esi, dword [ebp - 0x604]
push eax
push str.PORT
push 0x47d590
push ebx
push esi
call fcn.0044d070
mov edi, dword [ebp - 0x620]
add esp, 0x28
mov dword [ebp - 0x610], eax
test eax, eax
je 0x4365c5
mov edi, eax
push edi
call fcn.0040bc00
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x10
jmp 0x43674a
mov esi, dword [ebp - 0x604]
movzx eax, bx
mov ebx, dword [ebp - 0x628]
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x5fc], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push esi
call fcn.0044d070
add esp, 0x1c
mov dword [ebp - 0x610], eax
test eax, eax
je 0x4365c5
mov edi, eax
push edi
call fcn.0040bc00
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0x10
jmp 0x43674a
mov esi, dword [ebp - 0x604]
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 8
jmp 0x436745
mov eax, dword [ebp - 0x610]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0041d280
mov ebx, dword [ebp - 0x600]
add esp, 0xc
jmp 0x436745
mov ebx, dword [ebp - 0x600]
mov esi, dword [ebp - 0x604]
mov edi, 0x1e
mov byte [ebp - 0x620], 0
push dword [ebp - 0x620]
push esi
call fcn.00433b40
mov eax, dword [ebp - 0x618]
add esp, 8
cmp eax, 0xffffffff
je 0x436776
push eax
push ebx
push esi
call fcn.00443950
add esp, 0xc
push dword [ebp - 0x60c]
call dword [0x48f004]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045354f
mov esp, ebp
pop ebp
ret