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

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x46e074]
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.004481d0
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 0x434f6d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434e53
sub eax, edx
cmp eax, 1
jbe 0x434f6d
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434e70
sub eax, edx
cmp eax, 0x16
jae 0x434e85
mov eax, 0x16
jmp 0x434e99
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434e90
sub eax, edx
inc eax
push 1
push eax
call dword [0x46f560]
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
cmp ebx, edi
jne 0x434eba
mov eax, 0x1b
jmp 0x4353ae
cmp byte [esi], 0x3a
jne 0x434f2b
mov edi, esi
test edi, edi
je 0x434f1f
push 0x3a
push edi
call fcn.0044e3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x434f1f
push 0xa
lea edx, [esi + 1]
push 0
push edx
call fcn.004518dc
add esp, 0xc
movzx edi, ax
push 0x2d
push esi
mov dword [esp + 0x30], edi
call fcn.0044e3a0
add esp, 8
test eax, eax
je 0x434f62
push 0xa
xor esi, esi
inc eax
push esi
push eax
call fcn.004518dc
movzx eax, ax
add esp, 0xc
mov dword [esp + 0x20], eax
cmp di, ax
jbe 0x434f1f
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
cmp byte [ebx], 0
je 0x434f6b
mov esi, ebx
jmp 0x434fff
push 0x3a
push esi
call fcn.0044e3a0
mov edi, eax
add esp, 8
test edi, edi
je 0x434f50
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebx
call fcn.00446b10
add esp, 0xc
jmp 0x434ec1
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x434f56
jmp 0x434f1f
movzx eax, di
mov dword [esp + 0x20], eax
jmp 0x434f1f
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 0x434fc4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00412840
add esp, 4
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x1c]
call fcn.00414140
push ebx
call dword [0x46f554]
add esp, 0xc
mov eax, 0x1e
jmp 0x4353ae
movzx eax, word [esp + 0x30]
sub eax, 2
je 0x434fdb
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x434ff4
lea ecx, [esp + 0x34]
push 0x401
push ecx
lea esi, [esp + 0x5b8]
call fcn.0043eab0
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.004204b0
add esp, 0x10
cmp eax, 1
jne 0x435028
lea eax, [esp + 0x10]
push eax
mov edi, ebp
call fcn.00420e10
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x435047
mov esi, dword [esp + 0x14]
mov ebx, dword [edi]
call fcn.00420630
test ebx, ebx
jne 0x435052
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
jmp 0x434fa7
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x46f554]
mov edi, ebx
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
mov dword [esp + 0x18], edi
jmp 0x435076
mov edi, dword [esp + 0x18]
push ebp
lea ebx, [esp + 0x14]
xor edx, edx
mov ecx, edi
call fcn.0041ff20
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x4350a4
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 0x435072
jmp 0x4350a8
test edi, edi
jne 0x4350cf
push ebp
mov edi, esi
call fcn.00412840
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.socket_failure:__s
call fcn.00414140
add esp, 8
mov eax, 0x1e
jmp 0x4353ae
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00448250
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 0x435222
cmp word [esp + 0x30], 2
jne 0x435111
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 0x43521b
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp dword [esp + 0x2c], 0
je 0x435197
cmp eax, 0x2741
jne 0x435197
push ebp
mov edi, eax
call fcn.00412840
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.004140b0
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 0x4351b1
movzx esi, word [esp + 0x28]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x4351a4
cmp eax, 0x2740
je 0x4351a3
cmp eax, 0xd
jne 0x4351e5
inc esi
cmp si, word [esp + 0x20]
jbe 0x4350fd
jmp 0x435222
call ebx
push ebp
mov edi, eax
call fcn.00412840
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.00414140
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0041fec0
mov eax, 0x1e
jmp 0x4353ae
push ebp
mov edi, eax
call fcn.00412840
add esp, 4
push eax
mov eax, dword [esp + 0x18]
movzx ecx, si
push ecx
push str.bind_port_hu__failed:__s
call fcn.00414140
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, ebp
call fcn.0041fec0
mov eax, 0x1e
jmp 0x4353ae
cmp si, word [esp + 0x20]
jbe 0x435248
mov eax, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
call fcn.00414140
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, ebp
call fcn.0041fec0
mov eax, 0x1e
jmp 0x4353ae
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 0x43529f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00412840
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.00414140
mov eax, esi
add esp, 8
mov esi, ebp
call fcn.0041fec0
mov eax, 0x1e
jmp 0x4353ae
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4352e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00412840
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.socket_failure:__s
call fcn.00414140
mov eax, esi
add esp, 8
mov esi, ebp
call fcn.0041fec0
mov eax, 0x1e
jmp 0x4353ae
mov eax, dword [edi + 4]
sub eax, 2
jne 0x435305
mov edi, dword [edi + 0x18]
add edi, 4
push 0x100
push edi
lea esi, [esp + 0xb8]
call fcn.0043eab0
add esp, 8
mov esi, dword [esp + 0x9cc]
cmp esi, 2
je 0x43535e
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [ebp + 0x2bc], 0
jne 0x435329
test esi, esi
je 0x435358
cmp esi, 1
jne 0x435334
cmp cx, 2
jne 0x435358
movzx eax, cx
sub eax, 2
jne 0x435358
mov ecx, dword [esp + 0x32]
push ecx
call ebx
movzx edi, ax
test esi, esi
je 0x4353c7
cmp esi, 1
je 0x43543c
mov cx, word [esp + 0x30]
inc esi
cmp esi, 2
jne 0x43531c
mov ebx, dword [esp + 0x24]
mov dword [ebp + 0x530], esi
mov eax, dword [ebp + 0x1a4]
cmp eax, 0xffffffff
je 0x435384
mov esi, ebp
call fcn.0041fec0
mov dword [ebp + 0x1a4], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x580], 0
mov dword [ebp + 0x1a4], ecx
mov dword [ebp + 0x2a0], 1
mov dword [ebp + 0x53c], 0x1c
mov eax, ebx
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004453f2
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 + 0x4c8]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
mov ecx, edi
call fcn.00442910
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x435362
call fcn.00412170
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_EPRT_command:__s
call fcn.00414140
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0041fec0
mov dword [edi + 0x68], 1
mov dword [ebp + 0x53c], 0
jmp 0x4353ac
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
lea ebx, [ebx]
mov al, byte [edx]
test al, al
je 0x435467
cmp al, 0x2e
jne 0x43545f
mov byte [ecx], 0x2c
jmp 0x435461
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x435450
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.00413a70
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push str.PORT
push 0x467fec
lea ecx, [ebp + 0x4c8]
call fcn.00442910
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x435362
call fcn.00412170
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_PORT_command:__s
call fcn.00414140
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, ebp
call fcn.0041fec0
mov dword [ebp + 0x53c], 0
jmp 0x4353ac