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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c0
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
lea edx, [eax + 0x4e0]
push 0xff
mov dword [ebp - 0x998], eax
xor edi, edi
lea eax, [ebp - 0x10b]
push edi
push eax
mov dword [ebp - 0x9c0], ecx
mov dword [ebp - 0x9b4], edx
mov dword [ebp - 0x9a0], esi
mov byte [ebp - 0x10c], 0
call fcn.1003e2a0
mov esi, dword [esi + 0x44c]
add esp, 0xc
mov dword [ebp - 0x99c], edi
mov dword [ebp - 0x9b0], edi
mov dword [ebp - 0x9a8], edi
mov dword [ebp - 0x9b8], 1
mov dword [ebp - 0x9ac], edi
cmp esi, edi
je 0x1000ac4b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ab40
sub eax, edx
cmp eax, 1
jbe 0x1000ac4b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ab57
sub eax, edx
cmp eax, 0x16
jae 0x1000ab6c
mov eax, 0x16
jmp 0x1000ab7a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ab71
sub eax, edx
inc eax
push 1
push eax
call dword [0x100560f8]
mov edi, eax
add esp, 8
mov dword [ebp - 0x9ac], edi
test edi, edi
jne 0x1000aba7
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x3a
jne 0x1000acd0
mov ebx, esi
test ebx, ebx
je 0x1000ac2e
push 0x3a
push ebx
call fcn.10036d80
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ac2e
push 0xa
lea edx, [esi + 1]
push 0
push edx
call fcn.10037ccd
add esp, 0xc
push eax
call fcn.10033d60
add esp, 4
movzx ebx, ax
push 0x2d
push esi
mov dword [ebp - 0x9b0], ebx
call fcn.10036d80
add esp, 8
test eax, eax
je 0x1000ad0f
push 0xa
xor esi, esi
inc eax
push esi
push eax
call fcn.10037ccd
add esp, 0xc
push eax
call fcn.10033d60
movzx eax, ax
add esp, 4
mov dword [ebp - 0x9a8], eax
cmp bx, ax
jbe 0x1000ac2e
mov dword [ebp - 0x9a8], esi
mov dword [ebp - 0x9b0], esi
cmp byte [edi], 0
je 0x1000ac4b
call sym.libcurl.dll_curl_pushheader_byname
sub eax, 0
je 0x1000ad1d
dec eax
je 0x1000acba
dec eax
je 0x1000ad4c
mov eax, dword [ebp - 0x998]
lea ecx, [ebp - 0x9a4]
push ecx
mov ecx, dword [eax + 0x190]
lea edx, [ebp - 0x994]
push edx
push ecx
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000ad21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x998]
push edx
mov edi, eax
call fcn.10027b30
add esp, 4
push eax
mov eax, dword [ebp - 0x9a0]
push str.getsockname___failed:__s
push eax
call fcn.10022ce0
mov ecx, dword [ebp - 0x9ac]
add esp, 0xc
push ecx
call dword [0x100560ec]
add esp, 4
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
push 0x3a
push esi
call fcn.10036d80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000acf5
mov ecx, ebx
sub ecx, esi
push ecx
push esi
push edi
call fcn.10038a40
add esp, 0xc
jmp 0x1000abb2
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x1000ad00
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000ad00
jmp 0x1000ac2e
movzx eax, bx
mov dword [ebp - 0x9a8], eax
jmp 0x1000ac2e
mov ebx, edi
jmp 0x1000ad52
movzx eax, word [ebp - 0x994]
lea edx, [ebp - 0x990]
push 0x401
push edx
lea esi, [ebp - 0x514]
call fcn.100185d0
add esp, 8
mov dword [ebp - 0x9b8], 0
lea ebx, [ebp - 0x514]
mov ecx, dword [ebp - 0x998]
lea eax, [ebp - 0x99c]
push eax
push 0
push ebx
push ecx
call fcn.10010e50
add esp, 0x10
cmp eax, 1
jne 0x1000ad85
mov esi, dword [ebp - 0x998]
lea edx, [ebp - 0x99c]
push edx
call fcn.10001370
add esp, 4
mov eax, dword [ebp - 0x99c]
test eax, eax
je 0x1000ada4
mov esi, dword [eax]
push eax
mov eax, dword [ebp - 0x9a0]
call fcn.10010ff0
add esp, 4
test esi, esi
jne 0x1000add9
mov eax, dword [ebp - 0x9a0]
push ebx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push eax
call fcn.10022ce0
add esp, 0xc
push edi
call dword [0x100560ec]
add esp, 4
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
push edi
call dword [0x100560ec]
add esp, 4
mov dword [ebp - 0x99c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x9ac], esi
jmp 0x1000ae06
mov esi, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 0x998]
push ecx
lea ebx, [ebp - 0x99c]
xor edx, edx
mov ecx, esi
call fcn.100034b0
add esp, 4
mov dword [ebp - 0x9bc], eax
test eax, eax
je 0x1000ae40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov edi, eax
mov dword [ebp - 0x9ac], esi
test esi, esi
jne 0x1000ae00
jmp 0x1000ae44
test esi, esi
jne 0x1000ae7e
mov edx, dword [ebp - 0x998]
push edx
call fcn.10027b30
add esp, 4
push eax
mov eax, dword [ebp - 0x9a0]
push str.socket_failure:__s
push eax
call fcn.10022ce0
add esp, 0xc
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
push ecx
push edx
lea eax, [ebp - 0x994]
push eax
call fcn.10040ff0
mov eax, dword [ebp - 0x9b0]
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x9a4], ecx
movzx esi, ax
cmp ax, word [ebp - 0x9a8]
ja 0x1000b01f
cmp word [ebp - 0x994], 2
jne 0x1000aecc
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x992], ax
mov edx, dword [ebp - 0x9a4]
mov ecx, dword [ebp - 0x99c]
push edx
lea eax, [ebp - 0x994]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1000b016
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9b8], 0
je 0x1000af67
cmp eax, 0x2741
jne 0x1000af67
mov ebx, dword [ebp - 0x998]
push ebx
mov edi, eax
call fcn.10027b30
add esp, 4
movzx edx, si
mov esi, dword [ebp - 0x9a0]
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.10022c60
mov edx, dword [ebx + 0x190]
add esp, 0x10
lea eax, [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x994]
push ecx
push edx
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000af86
movzx esi, word [ebp - 0x9b0]
mov dword [ebp - 0x9b8], eax
jmp 0x1000af74
cmp eax, 0x2740
je 0x1000af73
cmp eax, 0xd
jne 0x1000afc9
inc esi
cmp si, word [ebp - 0x9a8]
jbe 0x1000aeb4
jmp 0x1000b01f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov edi, eax
call fcn.10027b30
add esp, 4
push eax
push str.getsockname___failed:__s
push esi
call fcn.10022ce0
mov eax, dword [ebp - 0x99c]
add esp, 0xc
mov esi, ebx
call fcn.10003450
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x998]
push ebx
mov edi, eax
call fcn.10027b30
mov ecx, dword [ebp - 0x9a0]
add esp, 4
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push ecx
call fcn.10022ce0
mov eax, dword [ebp - 0x99c]
add esp, 0x10
mov esi, ebx
call fcn.10003450
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
cmp si, word [ebp - 0x9a8]
jbe 0x1000b05a
mov edx, dword [ebp - 0x9a0]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.10022ce0
mov eax, dword [ebp - 0x99c]
mov esi, dword [ebp - 0x998]
add esp, 8
call fcn.10003450
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x99c]
lea eax, [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x994]
push ecx
push ebx
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000b0cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp - 0x998]
push esi
mov edi, eax
call fcn.10027b30
mov edx, dword [ebp - 0x9a0]
add esp, 4
push eax
push str.getsockname___failed:__s
push edx
call fcn.10022ce0
add esp, 0xc
mov eax, ebx
call fcn.10003450
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1000b122
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp - 0x998]
push esi
mov edi, eax
call fcn.10027b30
add esp, 4
push eax
mov eax, dword [ebp - 0x9a0]
push str.socket_failure:__s
push eax
call fcn.10022ce0
add esp, 0xc
mov eax, ebx
call fcn.10003450
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x9ac]
push 0x100
lea esi, [ebp - 0x10c]
call fcn.10010b10
mov esi, dword [ebp - 0x9c0]
add esp, 4
cmp esi, 2
je 0x1000b2bc
mov cx, word [ebp - 0x994]
mov edi, dword [ebp - 0x998]
cmp dword [edi + 0x2bc], 0
jne 0x1000b164
test esi, esi
je 0x1000b19b
cmp esi, 1
jne 0x1000b16f
cmp cx, 2
jne 0x1000b19b
movzx eax, cx
sub eax, 2
jne 0x1000b19b
mov ecx, dword [ebp - 0x992]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
test esi, esi
je 0x1000b1a6
cmp esi, 1
je 0x1000b21f
mov cx, word [ebp - 0x994]
inc esi
cmp esi, 2
jne 0x1000b151
jmp 0x1000b2c2
mov edx, dword [ebp - 0x9b4]
xor ecx, ecx
cmp word [ebp - 0x994], 2
push ebx
setne cl
lea eax, [ebp - 0x10c]
push eax
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
push edx
call fcn.1001ec30
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1000b2c8
push ebx
call sym.libcurl.dll_curl_easy_strerror
add esp, 4
push eax
mov eax, dword [ebp - 0x9a0]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.10022ce0
mov eax, dword [ebp - 0x99c]
add esp, 0xc
mov esi, edi
call fcn.10003450
mov ecx, dword [ebp - 0x9b4]
mov dword [ecx + 0x68], 1
xor eax, eax
jmp 0x1000b2f3
lea ecx, [ebp - 0x914]
lea edx, [ebp - 0x10c]
jmp 0x1000b230
mov al, byte [edx]
test al, al
je 0x1000b245
cmp al, 0x2e
jne 0x1000b23f
mov byte [ecx], 0x2c
jmp 0x1000b241
mov byte [ecx], al
inc ecx
inc edx
jne 0x1000b230
mov eax, ebx
mov edx, ebx
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call sym.libcurl.dll_curl_msnprintf
mov ecx, dword [ebp - 0x9b4]
add esp, 0x14
lea eax, [ebp - 0x914]
push eax
push str.PORT
push 0x1004ca9c
push ecx
call fcn.1001ec30
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1000b2c8
push ebx
call sym.libcurl.dll_curl_easy_strerror
mov edx, dword [ebp - 0x9a0]
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
push edx
call fcn.10022ce0
mov eax, dword [ebp - 0x99c]
add esp, 0xc
mov esi, edi
call fcn.10003450
xor eax, eax
jmp 0x1000b2f3
mov edi, dword [ebp - 0x998]
mov ebx, dword [ebp - 0x9bc]
mov eax, dword [ebp - 0x9b4]
mov dword [eax + 0x68], esi
mov eax, edi
call fcn.1000a170
mov ecx, dword [ebp - 0x99c]
mov dword [edi + 0x194], ecx
mov dword [edi + 0x2a0], 1
mov eax, 0x1c
mov ecx, edi
call fcn.1000a8f0
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10035d36
mov esp, ebp
pop ebp
ret