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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa3c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x680
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0xffffffff
mov al, byte [0x45d76c]
mov byte [ebp - 0x110], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x5a4], ecx
mov edx, dword [ebp - 0x5a4]
mov dword [ebp - 0x5a8], edx
mov dword [ebp - 0x9b4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x43c]
mov dword [ebp - 0x9b8], ecx
mov dword [ebp - 0x9bc], 0
mov word [ebp - 0x9c0], 0
mov word [ebp - 0x9c4], 0
mov dword [ebp - 0x9cc], 1
mov dword [ebp - 0x9d0], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x43c], 0
je 0x43b14d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x43c]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 1
jbe 0x43b14d
mov edx, dword [ebp - 0x9b8]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 0x16
jae 0x43aed6
mov dword [ebp - 0x9f0], 0x16
jmp 0x43aeeb
mov eax, dword [ebp - 0x9b8]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
mov dword [ebp - 0x9f0], eax
mov ecx, dword [ebp - 0x9f0]
mov dword [ebp - 0x9d4], ecx
mov edx, dword [ebp - 0x9b8]
mov dword [ebp - 0x9d8], edx
mov dword [ebp - 0x9dc], 0
mov dword [ebp - 0x9e0], 0
mov dword [ebp - 0x9e4], 0
push 1
mov eax, dword [ebp - 0x9d4]
add eax, 1
push eax
call dword [0x46c040]
add esp, 8
mov dword [ebp - 0x9d0], eax
cmp dword [ebp - 0x9d0], 0
jne 0x43af4f
mov eax, 0x1b
jmp 0x43b936
mov ecx, dword [ebp - 0x9b8]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x43af6b
mov eax, dword [ebp - 0x9b8]
mov dword [ebp - 0x9dc], eax
jmp 0x43afc8
push 0x3a
mov ecx, dword [ebp - 0x9b8]
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0x9dc], eax
cmp dword [ebp - 0x9dc], 0
je 0x43afb2
mov edx, dword [ebp - 0x9dc]
sub edx, dword [ebp - 0x9d8]
push edx
mov eax, dword [ebp - 0x9b8]
push eax
mov ecx, dword [ebp - 0x9d0]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
jmp 0x43afc8
mov edx, dword [ebp - 0x9b8]
push edx
mov eax, dword [ebp - 0x9d0]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
cmp dword [ebp - 0x9dc], 0
je 0x43b075
push 0x3a
mov ecx, dword [ebp - 0x9dc]
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0x9e0], eax
cmp dword [ebp - 0x9e0], 0
je 0x43b075
push 0xa
push 0
mov edx, dword [ebp - 0x9e0]
add edx, 1
push edx
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
push eax
call fcn.004278c0
add esp, 4
mov word [ebp - 0x9c0], ax
push 0x2d
mov eax, dword [ebp - 0x9e0]
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0x9e4], eax
cmp dword [ebp - 0x9e4], 0
je 0x43b067
push 0xa
push 0
mov ecx, dword [ebp - 0x9e4]
add ecx, 1
push ecx
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
push eax
call fcn.004278c0
add esp, 4
mov word [ebp - 0x9c4], ax
jmp 0x43b075
mov dx, word [ebp - 0x9c0]
mov word [ebp - 0x9c4], dx
mov eax, dword [ebp - 0x9c0]
and eax, 0xffff
mov ecx, dword [ebp - 0x9c4]
and ecx, 0xffff
cmp eax, ecx
jle 0x43b0a7
mov word [ebp - 0x9c4], 0
mov dx, word [ebp - 0x9c4]
mov word [ebp - 0x9c0], dx
mov eax, dword [ebp - 0x9d0]
movsx ecx, byte [eax]
test ecx, ecx
je 0x43b143
push 0x401
lea edx, [ebp - 0x5a0]
push edx
mov eax, dword [ebp - 0x9d0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00409280
add esp, 4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
push edx
call fcn.00409280
add esp, 0x18
mov dword [ebp - 0x9f4], eax
cmp dword [ebp - 0x9f4], 0
je 0x43b11d
cmp dword [ebp - 0x9f4], 1
je 0x43b12b
cmp dword [ebp - 0x9f4], 2
je 0x43b135
jmp 0x43b141
mov eax, dword [ebp - 0x9d0]
mov dword [ebp - 0x9b4], eax
jmp 0x43b141
mov eax, 0x1e
jmp 0x43b936
lea ecx, [ebp - 0x5a0]
mov dword [ebp - 0x9b4], ecx
jmp 0x43b14d
mov dword [ebp - 0x9b4], 0
cmp dword [ebp - 0x9b4], 0
jne 0x43b216
mov dword [ebp - 0x19c], 0x80
lea edx, [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x5a4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43b1c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004205c0
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00418ad0
add esp, 0xc
mov edx, dword [ebp - 0x9d0]
push edx
call dword [0x46c034]
add esp, 4
mov eax, 0x1e
jmp 0x43b936
mov eax, dword [ebp - 0x5a4]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x9f8], ecx
push 0x401
lea edx, [ebp - 0x5a0]
push edx
mov eax, dword [ebp - 0x5a8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x5a4]
xor edx, edx
mov dx, word [ecx]
push edx
call fcn.00428bc0
add esp, 0x10
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x9b4], eax
mov dword [ebp - 0x9cc], 0
lea ecx, [ebp - 0x9bc]
push ecx
push 0
mov edx, dword [ebp - 0x9b4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409b60
add esp, 0x10
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 1
jne 0x43b254
lea ecx, [ebp - 0x9bc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004078e0
add esp, 8
cmp dword [ebp - 0x9bc], 0
je 0x43b280
mov eax, dword [ebp - 0x9bc]
mov ecx, dword [eax]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x9bc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00409d50
add esp, 8
jmp 0x43b28a
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x194], 0
jne 0x43b2c5
mov ecx, dword [ebp - 0x9b4]
push ecx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
mov edx, dword [ebp - 0xc]
push edx
call fcn.00418ad0
add esp, 0xc
mov eax, dword [ebp - 0x9d0]
push eax
call dword [0x46c034]
add esp, 4
mov eax, 0x1e
jmp 0x43b936
mov ecx, dword [ebp - 0x9d0]
push ecx
call dword [0x46c034]
add esp, 4
mov dword [ebp - 0x9b4], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x9b0], 0
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
jmp 0x43b30d
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x198], ecx
cmp dword [ebp - 0x198], 0
je 0x43b346
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041e8a0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b346
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x9b0], eax
jmp 0x43b2fe
cmp dword [ebp - 0x198], 0
jne 0x43b37e
mov edx, dword [ebp - 0x9b0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004205c0
add esp, 8
push eax
push str.socket_failure:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00418ad0
add esp, 0xc
mov eax, 0x1e
jmp 0x43b936
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x5a4]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x19c], edx
mov ax, word [ebp - 0x9c0]
mov word [ebp - 0x9c8], ax
mov ecx, dword [ebp - 0x9c8]
and ecx, 0xffff
mov edx, dword [ebp - 0x9c4]
and edx, 0xffff
cmp ecx, edx
jg 0x43b585
mov eax, dword [ebp - 0x5a4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 2
jne 0x43b406
mov dx, word [ebp - 0x9c8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x5a8]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x5a4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43b56c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x9b0], eax
cmp dword [ebp - 0x9cc], 0
je 0x43b509
cmp dword [ebp - 0x9b0], 0x2741
jne 0x43b509
mov edx, dword [ebp - 0x9b0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004205c0
add esp, 8
push eax
mov ecx, dword [ebp - 0x9c8]
and ecx, 0xffff
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s_n
mov edx, dword [ebp - 0xc]
push edx
call fcn.00418a50
add esp, 0x10
mov dword [ebp - 0x19c], 0x80
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x5a4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43b4ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004205c0
add esp, 8
push eax
push str.getsockname___failed:__s
mov edx, dword [ebp - 0xc]
push edx
call fcn.00418ad0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041e810
add esp, 8
mov eax, 0x1e
jmp 0x43b936
mov dx, word [ebp - 0x9c0]
mov word [ebp - 0x9c8], dx
mov dword [ebp - 0x9cc], 0
jmp 0x43b3be
cmp dword [ebp - 0x9b0], 0x2740
je 0x43b56a
cmp dword [ebp - 0x9b0], 0xd
je 0x43b56a
mov eax, dword [ebp - 0x9b0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004205c0
add esp, 8
push eax
mov edx, dword [ebp - 0x9c8]
and edx, 0xffff
push edx
push str.bind_port_hu__failed:__s
mov eax, dword [ebp - 0xc]
push eax
call fcn.00418ad0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041e810
add esp, 8
mov eax, 0x1e
jmp 0x43b936
jmp 0x43b56e
jmp 0x43b585
mov ax, word [ebp - 0x9c8]
add ax, 1
mov word [ebp - 0x9c8], ax
jmp 0x43b3be
mov ecx, dword [ebp - 0x9c8]
and ecx, 0xffff
mov edx, dword [ebp - 0x9c4]
and edx, 0xffff
cmp ecx, edx
jle 0x43b5cc
push str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0xc]
push eax
call fcn.00418ad0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041e810
add esp, 8
mov eax, 0x1e
jmp 0x43b936
mov dword [ebp - 0x19c], 0x80
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x5a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43b631
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004205c0
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00418ad0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041e810
add esp, 8
mov eax, 0x1e
jmp 0x43b936
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43b680
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004205c0
add esp, 8
push eax
push str.socket_failure:__s
mov eax, dword [ebp - 0xc]
push eax
call fcn.00418ad0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041e810
add esp, 8
mov eax, 0x1e
jmp 0x43b936
push 0x100
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
call fcn.004096e0
add esp, 0xc
jmp 0x43b6a6
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 2
je 0x43b8f7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3ec], 0
jne 0x43b6c4
cmp dword [ebp + 0xc], 0
jne 0x43b6c4
jmp 0x43b69d
cmp dword [ebp + 0xc], 1
jne 0x43b6dc
mov ecx, dword [ebp - 0x5a4]
xor edx, edx
mov dx, word [ecx]
cmp edx, 2
je 0x43b6dc
jmp 0x43b69d
mov eax, dword [ebp - 0x5a4]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x9fc], ecx
cmp dword [ebp - 0x9fc], 2
je 0x43b6f8
jmp 0x43b712
mov edx, dword [ebp - 0x5a8]
mov ax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x9c8], ax
jmp 0x43b714
jmp 0x43b69d
cmp dword [ebp + 0xc], 0
jne 0x43b7c0
mov ecx, dword [ebp - 0x9c8]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x5a4]
xor ecx, ecx
mov cx, word [eax]
xor edx, edx
cmp ecx, 2
setne dl
inc edx
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 - 8]
push ecx
call fcn.004515d0
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b7bb
mov edx, dword [ebp - 4]
push edx
call fcn.00420100
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov eax, dword [ebp - 0xc]
push eax
call fcn.00418ad0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041e810
add esp, 8
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004398b0
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x43b936
jmp 0x43b8f7
cmp dword [ebp + 0xc], 1
jne 0x43b8f2
lea edx, [ebp - 0x110]
mov dword [ebp - 0x9e8], edx
lea eax, [ebp - 0x9a8]
mov dword [ebp - 0x9ec], eax
cmp dword [ebp - 0x9e8], 0
je 0x43b841
mov ecx, dword [ebp - 0x9e8]
movsx edx, byte [ecx]
test edx, edx
je 0x43b841
mov eax, dword [ebp - 0x9e8]
movsx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x43b811
mov edx, dword [ebp - 0x9ec]
mov byte [edx], 0x2c
jmp 0x43b821
mov eax, dword [ebp - 0x9ec]
mov ecx, dword [ebp - 0x9e8]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x9ec]
add eax, 1
mov dword [ebp - 0x9ec], eax
mov ecx, dword [ebp - 0x9e8]
add ecx, 1
mov dword [ebp - 0x9e8], ecx
jmp 0x43b7e2
mov edx, dword [ebp - 0x9ec]
mov byte [edx], 0
mov eax, dword [ebp - 0x9c8]
and eax, 0xffff
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x9c8]
and ecx, 0xffff
sar ecx, 8
push ecx
push str.__d__d
push 0x14
mov edx, dword [ebp - 0x9ec]
push edx
call fcn.004233f0
add esp, 0x14
lea eax, [ebp - 0x9a8]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 5
add ecx, str.EPRT
push ecx
push 0x461f74
mov edx, dword [ebp - 8]
push edx
call fcn.004515d0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b8f0
mov eax, dword [ebp - 4]
push eax
call fcn.00420100
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00418ad0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041e810
add esp, 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004398b0
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x43b936
jmp 0x43b8f7
jmp 0x43b69d
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x68], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043b940
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x194], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3d0], 1
push 0x1c
mov edx, dword [ebp + 8]
push edx
call fcn.004398b0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret