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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x629af0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x95c], 0
mov eax, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 0x53c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x544], edx
mov dword [ebp - 0x11c], 0xffffffff
mov al, byte [0x602413]
mov byte [ebp - 0x118], al
push 0xff
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.0057e200
add esp, 0xc
lea edx, [ebp - 0x9e0]
mov dword [ebp - 0x538], edx
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x534], 0
mov ecx, dword [ebp - 0x544]
mov edx, dword [ecx + 0x3b4]
mov dword [ebp - 0x540], edx
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x548], ax
xor ecx, ecx
mov word [ebp - 0x530], cx
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x960], 0
mov edx, dword [ebp - 0x544]
cmp dword [edx + 0x3b4], 0
je 0x45e24b
mov eax, dword [ebp - 0x544]
mov ecx, dword [eax + 0x3b4]
push ecx
call fcn.0057e4d0
add esp, 4
cmp eax, 1
jbe 0x45e24b
mov edx, dword [ebp - 0x540]
push edx
call fcn.0057e4d0
add esp, 4
cmp eax, 0x16
jae 0x45dfe3
mov dword [ebp - 0xa04], 0x16
jmp 0x45dff8
mov eax, dword [ebp - 0x540]
push eax
call fcn.0057e4d0
add esp, 4
mov dword [ebp - 0xa04], eax
mov ecx, dword [ebp - 0xa04]
mov dword [ebp - 0x9f4], ecx
mov edx, dword [ebp - 0x540]
mov dword [ebp - 0x9f8], edx
mov dword [ebp - 0x9ec], 0
mov dword [ebp - 0x9f0], 0
mov dword [ebp - 0x9e8], 0
push 1
mov eax, dword [ebp - 0x9f4]
add eax, 1
push eax
call dword [0x6252f4]
add esp, 8
mov dword [ebp - 0x960], eax
cmp dword [ebp - 0x960], 0
jne 0x45e05c
mov eax, 0x1b
jmp 0x45ea94
mov ecx, dword [ebp - 0x540]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x45e078
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x9ec], eax
jmp 0x45e0d3
push 0x3a
mov ecx, dword [ebp - 0x540]
push ecx
call fcn.0057e7b0
add esp, 8
mov dword [ebp - 0x9ec], eax
cmp dword [ebp - 0x9ec], 0
je 0x45e0bd
mov edx, dword [ebp - 0x9ec]
sub edx, dword [ebp - 0x9f8]
push edx
mov eax, dword [ebp - 0x540]
push eax
mov ecx, dword [ebp - 0x960]
push ecx
call fcn.0057e280
add esp, 0xc
jmp 0x45e0d3
mov edx, dword [ebp - 0x540]
push edx
mov eax, dword [ebp - 0x960]
push eax
call fcn.0057ec40
add esp, 8
cmp dword [ebp - 0x9ec], 0
je 0x45e17c
push 0x3a
mov ecx, dword [ebp - 0x9ec]
push ecx
call fcn.0057e7b0
add esp, 8
mov dword [ebp - 0x9f0], eax
cmp dword [ebp - 0x9f0], 0
je 0x45e17c
push 0xa
push 0
mov edx, dword [ebp - 0x9f0]
add edx, 1
push edx
call fcn.0057eb52
add esp, 0xc
push eax
call fcn.00469180
add esp, 4
mov word [ebp - 0x548], ax
push 0x2d
mov eax, dword [ebp - 0x9f0]
push eax
call fcn.0057e7b0
add esp, 8
mov dword [ebp - 0x9e8], eax
cmp dword [ebp - 0x9e8], 0
je 0x45e16e
push 0xa
push 0
mov ecx, dword [ebp - 0x9e8]
add ecx, 1
push ecx
call fcn.0057eb52
add esp, 0xc
push eax
call fcn.00469180
add esp, 4
mov word [ebp - 0x530], ax
jmp 0x45e17c
mov dx, word [ebp - 0x548]
mov word [ebp - 0x530], dx
movzx eax, word [ebp - 0x548]
movzx ecx, word [ebp - 0x530]
cmp eax, ecx
jle 0x45e1a5
xor edx, edx
mov word [ebp - 0x530], dx
mov ax, word [ebp - 0x530]
mov word [ebp - 0x548], ax
mov ecx, dword [ebp - 0x960]
movsx edx, byte [ecx]
test edx, edx
je 0x45e241
push 0x401
lea eax, [ebp - 0x958]
push eax
mov ecx, dword [ebp - 0x960]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 0x18]
push eax
call fcn.0046fae0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 4]
push eax
call fcn.0046fae0
add esp, 0x18
mov dword [ebp - 0xa08], eax
cmp dword [ebp - 0xa08], 0
je 0x45e21b
cmp dword [ebp - 0xa08], 1
je 0x45e229
cmp dword [ebp - 0xa08], 2
je 0x45e233
jmp 0x45e23f
mov ecx, dword [ebp - 0x960]
mov dword [ebp - 0x534], ecx
jmp 0x45e23f
mov eax, 0x1e
jmp 0x45ea94
lea edx, [ebp - 0x958]
mov dword [ebp - 0x534], edx
jmp 0x45e24b
mov dword [ebp - 0x534], 0
cmp dword [ebp - 0x534], 0
jne 0x45e32a
mov dword [ebp - 0x124], 0x80
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45e2dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435db0
add esp, 8
push eax
push str.getsockname___failed:__s
mov edx, dword [ebp - 0x544]
push edx
call fcn.004440d0
add esp, 0xc
cmp dword [ebp - 0x960], 0
je 0x45e2cf
mov eax, dword [ebp - 0x960]
push eax
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x960], 0
xor ecx, ecx
jne 0x45e2ac
mov eax, 0x1e
jmp 0x45ea94
mov edx, dword [ebp - 0x538]
movzx eax, word [edx]
mov dword [ebp - 0xa0c], eax
push 0x401
lea ecx, [ebp - 0x958]
push ecx
mov edx, dword [ebp - 0x54c]
add edx, 4
push edx
mov eax, dword [ebp - 0x538]
movzx ecx, word [eax]
push ecx
call fcn.0044c570
add esp, 0x10
lea edx, [ebp - 0x958]
mov dword [ebp - 0x534], edx
mov dword [ebp - 0x120], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x534]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00437bd0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x45e35c
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436fc0
add esp, 8
cmp dword [ebp - 8], 0
je 0x45e37f
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x544]
push edx
call fcn.00437db0
add esp, 8
jmp 0x45e386
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x45e3d8
mov eax, dword [ebp - 0x534]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
mov ecx, dword [ebp - 0x544]
push ecx
call fcn.004440d0
add esp, 0xc
cmp dword [ebp - 0x960], 0
je 0x45e3ca
mov edx, dword [ebp - 0x960]
push edx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x960], 0
xor eax, eax
jne 0x45e3a7
mov eax, 0x1e
jmp 0x45ea94
cmp dword [ebp - 0x960], 0
je 0x45e3fb
mov ecx, dword [ebp - 0x960]
push ecx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x960], 0
xor edx, edx
jne 0x45e3d8
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x11c], 0xffffffff
mov dword [ebp - 0x52c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x9e4], eax
jmp 0x45e437
mov ecx, dword [ebp - 0x9e4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x9e4], edx
cmp dword [ebp - 0x9e4], 0
je 0x45e47d
lea eax, [ebp - 0x11c]
push eax
push 0
mov ecx, dword [ebp - 0x9e4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00449330
add esp, 0x10
mov dword [ebp - 0x95c], eax
cmp dword [ebp - 0x95c], 0
je 0x45e479
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x52c], eax
jmp 0x45e428
jmp 0x45e47d
cmp dword [ebp - 0x9e4], 0
jne 0x45e4b8
mov eax, dword [ebp - 0x52c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435db0
add esp, 8
push eax
push str.socket_failure:__s
mov edx, dword [ebp - 0x544]
push edx
call fcn.004440d0
add esp, 0xc
mov eax, 0x1e
jmp 0x45ea94
mov eax, dword [ebp - 0x9e4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x9e4]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
call fcn.0057de50
add esp, 0xc
mov edx, dword [ebp - 0x9e4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x124], eax
mov cx, word [ebp - 0x548]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 0x530]
cmp edx, eax
jg 0x45e6a5
mov ecx, dword [ebp - 0x538]
movzx edx, word [ecx]
cmp edx, 2
jne 0x45e52b
movzx eax, word [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x54c]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x538]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x45e692
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x52c], eax
cmp dword [ebp - 0x120], 0
je 0x45e631
cmp dword [ebp - 0x52c], 0x2741
jne 0x45e631
mov edx, dword [ebp - 0x52c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00435db0
add esp, 8
push eax
movzx ecx, word [ebp - 4]
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s_n
mov edx, dword [ebp - 0x544]
push edx
call fcn.00444030
add esp, 0x10
mov dword [ebp - 0x124], 0x80
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45e615
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435db0
add esp, 8
push eax
push str.getsockname___failed:__s
mov edx, dword [ebp - 0x544]
push edx
call fcn.004440d0
add esp, 0xc
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004492b0
add esp, 8
mov eax, 0x1e
jmp 0x45ea94
mov dx, word [ebp - 0x548]
mov word [ebp - 4], dx
mov dword [ebp - 0x120], 0
jmp 0x45e4f5
cmp dword [ebp - 0x52c], 0x2740
je 0x45e690
cmp dword [ebp - 0x52c], 0xd
je 0x45e690
mov eax, dword [ebp - 0x52c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435db0
add esp, 8
push eax
movzx edx, word [ebp - 4]
push edx
push str.bind_port_hu__failed:__s
mov eax, dword [ebp - 0x544]
push eax
call fcn.004440d0
add esp, 0x10
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004492b0
add esp, 8
mov eax, 0x1e
jmp 0x45ea94
jmp 0x45e694
jmp 0x45e6a5
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
jmp 0x45e4f5
movzx ecx, word [ebp - 4]
movzx edx, word [ebp - 0x530]
cmp ecx, edx
jle 0x45e6e5
push str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0x544]
push eax
call fcn.004440d0
add esp, 8
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004492b0
add esp, 8
mov eax, 0x1e
jmp 0x45ea94
mov dword [ebp - 0x124], 0x80
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45e753
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00435db0
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0x544]
push ecx
call fcn.004440d0
add esp, 0xc
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004492b0
add esp, 8
mov eax, 0x1e
jmp 0x45ea94
push 1
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x45e7ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00435db0
add esp, 8
push eax
push str.socket_failure:__s
mov eax, dword [ebp - 0x544]
push eax
call fcn.004440d0
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004492b0
add esp, 8
mov eax, 0x1e
jmp 0x45ea94
push 0x100
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x9e4]
push ecx
call fcn.00437790
add esp, 0xc
jmp 0x45e7d1
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 2
je 0x45ea36
mov eax, dword [ebp + 8]
cmp dword [eax + 0x214], 0
jne 0x45e7ef
cmp dword [ebp + 0xc], 0
jne 0x45e7ef
jmp 0x45e7c8
cmp dword [ebp + 0xc], 1
jne 0x45e805
mov ecx, dword [ebp - 0x538]
movzx edx, word [ecx]
cmp edx, 2
je 0x45e805
jmp 0x45e7c8
mov eax, dword [ebp - 0x538]
movzx ecx, word [eax]
mov dword [ebp - 0xa10], ecx
cmp dword [ebp - 0xa10], 2
je 0x45e81f
jmp 0x45e836
mov edx, dword [ebp - 0x54c]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 4], ax
jmp 0x45e838
jmp 0x45e7c8
cmp dword [ebp + 0xc], 0
jne 0x45e8f9
movzx ecx, word [ebp - 4]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x538]
movzx ecx, word [eax]
xor edx, edx
cmp ecx, 2
setne dl
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 5
add eax, str.EPRT
push eax
push str._s__d_s_hu
mov ecx, dword [ebp - 0x53c]
push ecx
call fcn.00472f10
add esp, 0x18
mov dword [ebp - 0x95c], eax
cmp dword [ebp - 0x95c], 0
je 0x45e8ef
mov edx, dword [ebp - 0x95c]
push edx
call fcn.00435910
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov eax, dword [ebp - 0x544]
push eax
call fcn.004440d0
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004492b0
add esp, 8
mov eax, dword [ebp - 0x53c]
mov dword [eax + 0x68], 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045caf0
add esp, 8
mov eax, dword [ebp - 0x95c]
jmp 0x45ea94
jmp 0x45ea36
cmp dword [ebp + 0xc], 1
jne 0x45ea31
lea edx, [ebp - 0x118]
mov dword [ebp - 0xa00], edx
lea eax, [ebp - 0x528]
mov dword [ebp - 0x9fc], eax
cmp dword [ebp - 0xa00], 0
je 0x45e97a
mov ecx, dword [ebp - 0xa00]
movsx edx, byte [ecx]
test edx, edx
je 0x45e97a
mov eax, dword [ebp - 0xa00]
movsx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x45e94a
mov edx, dword [ebp - 0x9fc]
mov byte [edx], 0x2c
jmp 0x45e95a
mov eax, dword [ebp - 0x9fc]
mov ecx, dword [ebp - 0xa00]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x9fc]
add eax, 1
mov dword [ebp - 0x9fc], eax
mov ecx, dword [ebp - 0xa00]
add ecx, 1
mov dword [ebp - 0xa00], ecx
jmp 0x45e91b
mov edx, dword [ebp - 0x9fc]
mov byte [edx], 0
movzx eax, word [ebp - 4]
and eax, 0xff
push eax
movzx ecx, word [ebp - 4]
sar ecx, 8
push ecx
push str.__d__d
push 0x14
mov edx, dword [ebp - 0x9fc]
push edx
call fcn.0044b1d0
add esp, 0x14
lea eax, [ebp - 0x528]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 5
add ecx, str.EPRT
push ecx
push 0x5cb08c
mov edx, dword [ebp - 0x53c]
push edx
call fcn.00472f10
add esp, 0x10
mov dword [ebp - 0x95c], eax
cmp dword [ebp - 0x95c], 0
je 0x45ea2f
mov eax, dword [ebp - 0x95c]
push eax
call fcn.00435910
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov ecx, dword [ebp - 0x544]
push ecx
call fcn.004440d0
add esp, 0xc
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004492b0
add esp, 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045caf0
add esp, 8
mov eax, dword [ebp - 0x95c]
jmp 0x45ea94
jmp 0x45ea36
jmp 0x45e7c8
mov edx, dword [ebp - 0x53c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x68], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x158], 0xffffffff
je 0x45ea64
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x158]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004492b0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x11c]
mov dword [edx + 0x158], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1f8], 1
push 0x1c
mov edx, dword [ebp + 8]
push edx
call fcn.0045caf0
add esp, 8
mov eax, dword [ebp - 0x95c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057976c
mov esp, ebp
pop ebp
ret