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

Disassembly:
push ebp
lea ebp, [esp - 0x92c]
sub esp, 0x9ac
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x928], eax
or dword [ebp - 0x64], 0xffffffff
push ebx
push edi
mov edi, dword [esi]
xor ebx, ebx
push 0xff
lea eax, [ebp + 0x829]
push ebx
push eax
mov dword [ebp - 0x68], edi
mov byte [ebp + 0x828], bl
call fcn.004463d0
lea eax, [edi + 0x3ac]
mov edi, dword [eax]
mov dword [ebp - 0x80], ebx
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x60], ebx
cmp eax, ebx
je 0x435011
push eax
call fcn.004480c0
pop ecx
cmp eax, 1
jbe 0x435011
push edi
call fcn.004480c0
pop ecx
cmp eax, 0x16
jae 0x434f03
push 0x16
pop eax
jmp 0x434f0a
push edi
call fcn.004480c0
pop ecx
inc eax
push 1
push eax
call dword [0x48a9ec]
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x434f25
push 0x1b
pop eax
jmp 0x435361
cmp byte [edi], 0x3a
jne 0x434f2f
mov dword [ebp - 0x6c], edi
jmp 0x434f5c
push 0x3a
push edi
call fcn.0044ae40
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x434f51
sub eax, edi
push eax
push edi
push dword [ebp - 0x60]
call fcn.0044b000
add esp, 0xc
jmp 0x434f5c
push edi
push dword [ebp - 0x60]
call fcn.0044af00
pop ecx
pop ecx
cmp dword [ebp - 0x6c], ebx
je 0x434fc5
push 0x3a
push dword [ebp - 0x6c]
call fcn.0044ae40
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x434fc5
push 0xa
lea eax, [edi + 1]
push ebx
push eax
call fcn.0044b6ef
push eax
call fcn.0043c08c
movzx eax, ax
push 0x2d
push edi
mov dword [ebp - 0x70], eax
call fcn.0044ae40
add esp, 0x18
cmp eax, ebx
je 0x434fb2
push 0xa
inc eax
push ebx
push eax
call fcn.0044b6ef
push eax
call fcn.0043c08c
add esp, 0x10
movzx eax, ax
jmp 0x434fb6
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0x78], eax
cmp word [ebp - 0x70], ax
jbe 0x434fc5
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x60]
cmp byte [eax], bl
je 0x43500b
push 0x401
lea ecx, [ebp + 0x424]
push ecx
push eax
push dword [esi + 0x88]
mov eax, dword [esi + 0x4c]
push dword [eax + 0x18]
call fcn.004083c7
pop ecx
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call fcn.004083c7
add esp, 0x18
sub eax, ebx
je 0x435006
dec eax
je 0x43505d
dec eax
jne 0x435011
jmp 0x435084
mov edi, dword [ebp - 0x60]
jmp 0x43500d
xor edi, edi
cmp edi, ebx
jne 0x43508a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x154]
mov dword [ebp - 0x74], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x435064
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004297f1
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x68]
call fcn.00425257
add esp, 0x14
cmp dword [ebp - 0x60], ebx
je 0x43505d
push dword [ebp - 0x60]
call dword [0x48a9e0]
pop ecx
push 0x1e
jmp 0x434f1f
push 0x401
lea eax, [ebp + 0x424]
push eax
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x5c]
push eax
call fcn.00429a18
add esp, 0x10
mov dword [ebp - 0x7c], ebx
lea edi, [ebp + 0x424]
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
call fcn.0041d92c
add esp, 0x10
cmp eax, 1
jne 0x4350aa
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0041d433
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x4350c3
mov ecx, dword [eax]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
call fcn.0041da70
pop ecx
pop ecx
jmp 0x4350c6
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], ebx
jne 0x4350e1
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x68]
call fcn.00425257
add esp, 0xc
jmp 0x43504e
cmp dword [ebp - 0x60], ebx
je 0x4350f0
push dword [ebp - 0x60]
call dword [0x48a9e0]
pop ecx
or dword [ebp - 0x64], 0xffffffff
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x64]
push eax
push ebx
push edi
push esi
call fcn.004275f6
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x435120
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0x60], eax
cmp edi, ebx
jne 0x4350fa
cmp edi, ebx
jne 0x435143
push dword [ebp - 0x60]
push esi
call fcn.004297f1
push eax
push str.socket_failure:__s
push dword [ebp - 0x68]
call fcn.00425257
add esp, 0x14
jmp 0x43505d
push dword [edi + 0x10]
lea eax, [ebp - 0x5c]
push dword [edi + 0x18]
push eax
call fcn.0044b130
mov eax, dword [edi + 0x10]
movzx ebx, word [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov ax, word [ebp - 0x78]
add esp, 0xc
cmp word [ebp - 0x70], ax
ja 0x435207
cmp word [ebp - 0x5c], 2
jne 0x43517f
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5a], ax
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x435201
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x7c], 0
je 0x4351ea
cmp eax, 0x2741
jne 0x4351ea
push eax
push esi
call fcn.004297f1
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0x68]
call fcn.004251ed
add esp, 0x18
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x154]
mov dword [ebp - 0x74], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x435225
movzx ebx, word [ebp - 0x70]
and dword [ebp - 0x7c], eax
jmp 0x4351f7
cmp eax, 0x2740
je 0x4351f6
cmp eax, 0xd
jne 0x435251
inc ebx
cmp bx, word [ebp - 0x78]
jbe 0x43516d
cmp bx, word [ebp - 0x78]
jbe 0x43527b
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x68]
call fcn.00425257
push dword [ebp - 0x64]
push esi
call fcn.004275ae
add esp, 0x10
jmp 0x43505d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004297f1
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x68]
call fcn.00425257
push dword [ebp - 0x64]
push esi
call fcn.004275ae
add esp, 0x1c
jmp 0x43505d
push eax
push esi
call fcn.004297f1
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x68]
call fcn.00425257
push dword [ebp - 0x64]
push esi
call fcn.004275ae
add esp, 0x20
jmp 0x43505d
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x435225
push 1
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4352be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004297f1
push eax
push str.socket_failure:__s
jmp 0x435238
push 0x100
lea eax, [ebp + 0x828]
push eax
push edi
call fcn.0041d6b0
mov ebx, dword [ebp + 0x934]
add esp, 0xc
jmp 0x43531c
cmp dword [esi + 0x210], 0
jne 0x4352e8
test ebx, ebx
je 0x435315
cmp ebx, 1
jne 0x4352f4
cmp word [ebp - 0x5c], 2
jne 0x435315
movzx eax, word [ebp - 0x5c]
dec eax
dec eax
jne 0x435315
push dword [ebp - 0x5a]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test ebx, ebx
je 0x435378
cmp ebx, 1
je 0x4353e0
inc ebx
mov dword [ebp + 0x934], ebx
cmp ebx, 2
jne 0x4352db
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x934]
lea edi, [esi + 0x158]
mov dword [esi + 0x468], eax
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x435346
push eax
push esi
call fcn.004275ae
pop ecx
pop ecx
mov eax, dword [ebp - 0x64]
push 0x1c
mov dword [edi], eax
mov dword [esi + 0x1f4], 1
pop eax
mov ecx, esi
call fcn.00434d7d
mov eax, ebx
mov ecx, dword [ebp + 0x928]
pop edi
xor ecx, ebp
pop ebx
call fcn.004463b6
add ebp, 0x92c
leave
ret
movzx eax, di
push eax
lea eax, [ebp + 0x828]
push eax
xor eax, eax
cmp word [ebp - 0x5c], 2
lea edi, [esi + 0x400]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
call fcn.00441b03
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x435324
push ebx
call fcn.00429123
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x68]
call fcn.00425257
push dword [ebp - 0x64]
push esi
call fcn.004275ae
mov dword [edi + 0x68], 1
add esp, 0x18
xor eax, eax
jmp 0x435358
lea ecx, [ebp + 0x24]
lea edx, [ebp + 0x828]
mov al, byte [edx]
test al, al
je 0x4353fe
cmp al, 0x2e
jne 0x4353f8
mov byte [ecx], 0x2c
jmp 0x4353fa
mov byte [ecx], al
inc ecx
inc edx
jne 0x4353e9
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.00428762
lea eax, [ebp + 0x24]
push eax
push str.PORT
lea eax, [esi + 0x400]
push 0x47385c
push eax
call fcn.00441b03
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x435324
push ebx
call fcn.00429123
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x68]
call fcn.00425257
push dword [ebp - 0x64]
push esi
call fcn.004275ae
jmp 0x4353d6