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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9fc
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x4d8
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x8b4], 0xffffffff
mov al, byte [0x1006aeac]
mov byte [ebp - 0x9d0], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x9cf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x8b0]
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x8bc], edx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x43c]
mov dword [ebp - 0x8b8], ecx
mov dword [ebp - 0x8c0], 0
mov word [ebp - 0x8c4], 0
mov word [ebp - 8], 0
mov dword [ebp - 0x82c], 1
mov dword [ebp - 0x8c8], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x43c], 0
je 0x10011e83
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x43c]
push ecx
call fcn.1004fb70
add esp, 4
cmp eax, 1
jbe 0x10011e83
mov edx, dword [ebp - 0x8b8]
push edx
call fcn.1004fb70
add esp, 4
cmp eax, 0x16
jae 0x10011c2a
mov dword [ebp - 0x9f0], 0x16
jmp 0x10011c3f
mov eax, dword [ebp - 0x8b8]
push eax
call fcn.1004fb70
add esp, 4
mov dword [ebp - 0x9f0], eax
mov ecx, dword [ebp - 0x9f0]
mov dword [ebp - 0x9d8], ecx
mov edx, dword [ebp - 0x8b8]
mov dword [ebp - 0x9dc], edx
mov dword [ebp - 0x9d4], 0
mov dword [ebp - 0x9e4], 0
mov dword [ebp - 0x9e0], 0
push 1
mov eax, dword [ebp - 0x9d8]
add eax, 1
push eax
call dword [0x1005fdb4]
add esp, 8
mov dword [ebp - 0x8c8], eax
cmp dword [ebp - 0x8c8], 0
jne 0x10011ca3
mov eax, 0x1b
jmp 0x1001264e
mov ecx, dword [ebp - 0x8b8]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x10011cbf
mov eax, dword [ebp - 0x8b8]
mov dword [ebp - 0x9d4], eax
jmp 0x10011d1a
push 0x3a
mov ecx, dword [ebp - 0x8b8]
push ecx
call fcn.10050070
add esp, 8
mov dword [ebp - 0x9d4], eax
cmp dword [ebp - 0x9d4], 0
je 0x10011d04
mov edx, dword [ebp - 0x9d4]
sub edx, dword [ebp - 0x9dc]
push edx
mov eax, dword [ebp - 0x8b8]
push eax
mov ecx, dword [ebp - 0x8c8]
push ecx
call fcn.10050f40
add esp, 0xc
jmp 0x10011d1a
mov edx, dword [ebp - 0x8b8]
push edx
mov eax, dword [ebp - 0x8c8]
push eax
call fcn.100509f0
add esp, 8
cmp dword [ebp - 0x9d4], 0
je 0x10011dbd
push 0x3a
mov ecx, dword [ebp - 0x9d4]
push ecx
call fcn.10050070
add esp, 8
mov dword [ebp - 0x9e4], eax
cmp dword [ebp - 0x9e4], 0
je 0x10011dbd
push 0xa
push 0
mov edx, dword [ebp - 0x9e4]
add edx, 1
push edx
call fcn.10050de5
add esp, 0xc
push eax
call fcn.1004e950
add esp, 4
mov word [ebp - 0x8c4], ax
push 0x2d
mov eax, dword [ebp - 0x9e4]
push eax
call fcn.10050070
add esp, 8
mov dword [ebp - 0x9e0], eax
cmp dword [ebp - 0x9e0], 0
je 0x10011db2
push 0xa
push 0
mov ecx, dword [ebp - 0x9e0]
add ecx, 1
push ecx
call fcn.10050de5
add esp, 0xc
push eax
call fcn.1004e950
add esp, 4
mov word [ebp - 8], ax
jmp 0x10011dbd
mov dx, word [ebp - 0x8c4]
mov word [ebp - 8], dx
mov eax, dword [ebp - 0x8c4]
and eax, 0xffff
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp eax, ecx
jle 0x10011de6
mov word [ebp - 8], 0
mov dx, word [ebp - 8]
mov word [ebp - 0x8c4], dx
mov eax, dword [ebp - 0x8c8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10011e7c
push 0x401
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x8c8]
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.10022a40
add esp, 4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
push edx
call fcn.10022a4e
add esp, 0x18
mov dword [ebp - 0x9f4], eax
cmp dword [ebp - 0x9f4], 0
je 0x10011e5c
cmp dword [ebp - 0x9f4], 1
je 0x10011e67
cmp dword [ebp - 0x9f4], 2
je 0x10011e71
jmp 0x10011e7a
mov eax, dword [ebp - 0x8c8]
mov dword [ebp - 0xc], eax
jmp 0x10011e7a
mov eax, 0x1e
jmp 0x1001264e
lea ecx, [ebp - 0x828]
mov dword [ebp - 0xc], ecx
jmp 0x10011e83
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x10011f40
mov dword [ebp - 0x14], 0x80
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x420]
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 0x10011ef2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
push 0x100603d0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100350d3
add esp, 0xc
mov edx, dword [ebp - 0x8c8]
push edx
call dword [0x1005fda8]
add esp, 4
mov eax, 0x1e
jmp 0x1001264e
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x9f8], ecx
push 0x401
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x8bc]
add eax, 4
push eax
mov ecx, dword [ebp - 0x420]
xor edx, edx
mov dx, word [ecx]
push edx
call fcn.100255e0
add esp, 0x10
lea eax, [ebp - 0x828]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x82c], 0
lea ecx, [ebp - 0x8c0]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001a775
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x10011f75
lea ecx, [ebp - 0x8c0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001149
add esp, 8
cmp dword [ebp - 0x8c0], 0
je 0x10011fa1
mov eax, dword [ebp - 0x8c0]
mov ecx, dword [eax]
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x8c0]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001a945
add esp, 8
jmp 0x10011fab
mov dword [ebp - 0x830], 0
cmp dword [ebp - 0x830], 0
jne 0x10011fe3
mov ecx, dword [ebp - 0xc]
push ecx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100350d3
add esp, 0xc
mov eax, dword [ebp - 0x8c8]
push eax
call dword [0x1005fda8]
add esp, 4
mov eax, 0x1e
jmp 0x1001264e
mov ecx, dword [ebp - 0x8c8]
push ecx
call dword [0x1005fda8]
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x8b4], 0xffffffff
mov dword [ebp - 0x8d0], 0
mov edx, dword [ebp - 0x830]
mov dword [ebp - 0x18], edx
jmp 0x10012022
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x10012058
lea edx, [ebp - 0x8b4]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003e08
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10012058
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8d0], eax
jmp 0x10012019
cmp dword [ebp - 0x18], 0
jne 0x1001208d
mov edx, dword [ebp - 0x8d0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
push 0x10060420
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100350d3
add esp, 0xc
mov eax, 0x1e
jmp 0x1001264e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x420]
push eax
call fcn.1004fbf0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x14], edx
mov ax, word [ebp - 0x8c4]
mov word [ebp - 0x8cc], ax
mov ecx, dword [ebp - 0x8cc]
and ecx, 0xffff
mov edx, dword [ebp - 8]
and edx, 0xffff
cmp ecx, edx
jg 0x10012285
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 2
jne 0x10012106
mov dx, word [ebp - 0x8cc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x8bc]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x8b4]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1001226c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8d0], eax
cmp dword [ebp - 0x82c], 0
je 0x10012206
cmp dword [ebp - 0x8d0], 0x2741
jne 0x10012206
mov edx, dword [ebp - 0x8d0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
mov ecx, dword [ebp - 0x8cc]
and ecx, 0xffff
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s_n
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1003504f
add esp, 0x10
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x420]
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 0x100121e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003c041
add esp, 8
push eax
push 0x10060464
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100350d3
add esp, 0xc
mov eax, dword [ebp - 0x8b4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003d83
add esp, 8
mov eax, 0x1e
jmp 0x1001264e
mov dx, word [ebp - 0x8c4]
mov word [ebp - 0x8cc], dx
mov dword [ebp - 0x82c], 0
jmp 0x100120c1
cmp dword [ebp - 0x8d0], 0x2740
je 0x1001226a
cmp dword [ebp - 0x8d0], 0xd
je 0x1001226a
mov eax, dword [ebp - 0x8d0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003c041
add esp, 8
push eax
mov edx, dword [ebp - 0x8cc]
and edx, 0xffff
push edx
push str.bind_port_hu__failed:__s
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100350d3
add esp, 0x10
mov ecx, dword [ebp - 0x8b4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d83
add esp, 8
mov eax, 0x1e
jmp 0x1001264e
jmp 0x1001226e
jmp 0x10012285
mov ax, word [ebp - 0x8cc]
add ax, 1
mov word [ebp - 0x8cc], ax
jmp 0x100120c1
mov ecx, dword [ebp - 0x8cc]
and ecx, 0xffff
mov edx, dword [ebp - 8]
and edx, 0xffff
cmp ecx, edx
jle 0x100122cc
push str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100350d3
add esp, 8
mov ecx, dword [ebp - 0x8b4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d83
add esp, 8
mov eax, 0x1e
jmp 0x1001264e
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x8b4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10012331
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100350d3
add esp, 0xc
mov edx, dword [ebp - 0x8b4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
mov eax, 0x1e
jmp 0x1001264e
push 1
mov ecx, dword [ebp - 0x8b4]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10012386
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1003c041
add esp, 8
push eax
push str.socket_failure:__s
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100350d3
add esp, 0xc
mov ecx, dword [ebp - 0x8b4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d83
add esp, 8
mov eax, 0x1e
jmp 0x1001264e
push 0x100
lea eax, [ebp - 0x9d0]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1001a375
add esp, 0xc
jmp 0x100123a9
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 2
je 0x10012609
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2bc], 0
jne 0x100123c7
cmp dword [ebp + 0xc], 0
jne 0x100123c7
jmp 0x100123a0
cmp dword [ebp + 0xc], 1
jne 0x100123df
mov ecx, dword [ebp - 0x420]
xor edx, edx
mov dx, word [ecx]
cmp edx, 2
je 0x100123df
jmp 0x100123a0
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x9fc], ecx
cmp dword [ebp - 0x9fc], 2
je 0x100123fb
jmp 0x10012415
mov edx, dword [ebp - 0x8bc]
mov ax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x8cc], ax
jmp 0x10012417
jmp 0x100123a0
cmp dword [ebp + 0xc], 0
jne 0x100124cc
mov ecx, dword [ebp - 0x8cc]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x9d0]
push edx
mov eax, dword [ebp - 0x420]
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 - 0x424]
push ecx
call fcn.1002f059
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100124c7
mov edx, dword [ebp - 4]
push edx
call sym.libcurl.dll_curl_easy_strerror
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100350d3
add esp, 0xc
mov ecx, dword [ebp - 0x8b4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d83
add esp, 8
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x68], 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100106dd
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x1001264e
jmp 0x10012609
cmp dword [ebp + 0xc], 1
jne 0x10012604
lea edx, [ebp - 0x9d0]
mov dword [ebp - 0x9ec], edx
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x9e8], eax
cmp dword [ebp - 0x9ec], 0
je 0x1001254d
mov ecx, dword [ebp - 0x9ec]
movsx edx, byte [ecx]
test edx, edx
je 0x1001254d
mov eax, dword [ebp - 0x9ec]
movsx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x1001251d
mov edx, dword [ebp - 0x9e8]
mov byte [edx], 0x2c
jmp 0x1001252d
mov eax, dword [ebp - 0x9e8]
mov ecx, dword [ebp - 0x9ec]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x9e8]
add eax, 1
mov dword [ebp - 0x9e8], eax
mov ecx, dword [ebp - 0x9ec]
add ecx, 1
mov dword [ebp - 0x9ec], ecx
jmp 0x100124ee
mov edx, dword [ebp - 0x9e8]
mov byte [edx], 0
mov eax, dword [ebp - 0x8cc]
and eax, 0xffff
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x8cc]
and ecx, 0xffff
sar ecx, 8
push ecx
push str.__d__d
push 0x14
mov edx, dword [ebp - 0x9e8]
push edx
call sym.libcurl.dll_curl_msnprintf
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 5
add ecx, str.EPRT
push ecx
push 0x1006052c
mov edx, dword [ebp - 0x424]
push edx
call fcn.1002f059
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10012602
mov eax, dword [ebp - 4]
push eax
call sym.libcurl.dll_curl_easy_strerror
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100350d3
add esp, 0xc
mov edx, dword [ebp - 0x8b4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100106dd
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x1001264e
jmp 0x10012609
jmp 0x100123a0
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x68], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10012653
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x8b4]
mov dword [edx + 0x194], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2a0], 1
push 0x1c
mov edx, dword [ebp + 8]
push edx
call fcn.100106dd
add esp, 8
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret