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

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
mov ebx, dword [edi]
push ebp
push esi
push 0xff
xor ebp, ebp
lea eax, [esp + 0xb5]
push ebp
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xbc], 0
call sub.MSVCR90.dll_memset
mov esi, dword [ebx + 0x3b4]
mov dword [esp + 0x30], ebp
mov eax, dword [ebx + 0x3b4]
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x1000ad78
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ac04
sub eax, edx
cmp eax, 1
jbe 0x1000ad78
mov eax, esi
lea edx, [eax + 1]
jmp 0x1000ac20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ac20
sub eax, edx
cmp eax, 0x41
jae 0x1000ac35
mov eax, 0x41
jmp 0x1000ac49
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ac40
sub eax, edx
inc eax
push 1
push eax
call dword [0x10044048]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000ac7b
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
mov al, byte [esi]
mov ebx, dword [sym.imp.MSVCR90.dll_strchr]
cmp al, 0x5b
jne 0x1000adee
lea ecx, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x34], ecx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1000ad24
mov eax, dword [esp + 0x2c]
mov edx, ebp
sub edx, eax
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
test ebp, ebp
je 0x1000ad24
push 0x3a
push ebp
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ad24
mov ebp, dword [sym.imp.MSVCR90.dll_strtoul]
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call ebp
push eax
call fcn.1002f800
movzx edx, ax
push 0x2d
push esi
mov dword [esp + 0x30], edx
call ebx
add esp, 0x18
test eax, eax
je 0x1000ae61
push 0xa
inc eax
push 0
push eax
call ebp
push eax
call fcn.1002f800
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x18], ax
jbe 0x1000ad24
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x1000ad78
mov edx, dword [edi + 0x88]
mov eax, dword [edi + 0x4c]
push 0x401
lea ecx, [esp + 0x1b4]
push ecx
mov ecx, dword [eax + 0x18]
push ebx
push edx
push ecx
call fcn.10016100
mov edx, dword [edi + 0x4c]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call fcn.10035f30
add esp, 0x18
sub eax, 0
je 0x1000ae6b
sub eax, 1
je 0x1000add1
sub eax, 1
je 0x1000aea9
mov eax, dword [edi + 0x154]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000ae6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10024630
mov ecx, dword [esp + 0x1c]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.1000a2d0
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x1000add1
push eax
call dword [0x1004403c]
add esp, 4
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
cmp al, 0x3a
jne 0x1000adf9
mov ebp, esi
jmp 0x1000acbc
push 0x3a
push esi
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1000ae4a
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x17
call fcn.10023b30
add esp, 0xc
cmp eax, 1
jne 0x1000ae3f
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000ae30
jmp 0x1000ad24
mov edx, ebp
sub edx, esi
push edx
push esi
jmp 0x1000acae
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000ae52
jmp 0x1000ad24
movzx eax, word [esp + 0x18]
jmp 0x1000ad20
mov esi, ebx
jmp 0x1000aeb0
movzx eax, word [esp + 0x30]
push 0x401
lea edx, [esp + 0x1b4]
push edx
cmp eax, 0x17
je 0x1000ae8e
lea ecx, [esp + 0x3c]
push ecx
push eax
jmp 0x1000ae95
lea eax, [esp + 0x40]
push eax
push 0x17
call fcn.100252a0
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x28], 0
lea esi, [esp + 0x1b0]
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push edi
call fcn.10002080
add esp, 0x10
cmp eax, 1
jne 0x1000aed4
lea edx, [esp + 0x24]
push edx
push edi
call fcn.10030f90
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000aef0
mov ebp, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.10002230
add esp, 8
test ebp, ebp
jne 0x1000af32
mov ecx, dword [esp + 0x14]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.1000a2d0
add esp, 0xc
test ebx, ebx
je 0x1000add1
push ebx
call dword [0x1004403c]
add esp, 4
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
test ebx, ebx
je 0x1000af40
push ebx
call dword [0x1004403c]
add esp, 4
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], 0xffffffff
xor esi, esi
lea edx, [esp + 0xc]
push edx
push 0
push ebp
push edi
call fcn.1001f8b0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000af76
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x1000af50
jmp 0x1000af7a
test ebp, ebp
jne 0x1000afb1
push esi
push edi
call fcn.10024630
push eax
mov eax, dword [esp + 0x20]
push str.socket_failure:__s
push eax
call fcn.1000a2d0
add esp, 0x14
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x20], ecx
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x1000b115
mov ebx, dword [esp + 0x28]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1000b10e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x1000b067
cmp eax, 0x2741
jne 0x1000b067
push eax
push edi
call fcn.10024630
movzx edx, si
mov esi, dword [esp + 0x1c]
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.1000a240
mov edx, dword [edi + 0x154]
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000b084
movzx esi, word [esp + 0x18]
xor ebx, ebx
jmp 0x1000b074
cmp eax, 0x2740
je 0x1000b073
cmp eax, 0xd
jne 0x1000b0c8
inc esi
cmp si, word [esp + 0x1c]
jbe 0x1000afe3
jmp 0x1000b115
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10024630
push eax
push str.getsockname___failed:__s
push esi
call fcn.1000a2d0
mov eax, dword [esp + 0x20]
push eax
push edi
call fcn.1001f860
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
push eax
push edi
call fcn.10024630
mov edx, dword [esp + 0x1c]
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__failed:__s
push edx
call fcn.1000a2d0
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.1001f860
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
cmp si, word [esp + 0x1c]
jbe 0x1000b14f
mov ecx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push ecx
call fcn.1000a2d0
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.1001f860
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000b1b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10024630
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x24]
push eax
call fcn.1000a2d0
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.1001f860
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
mov edx, dword [esp + 0xc]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1000b1de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10024630
push eax
push str.socket_failure:__s
jmp 0x1000b183
push 0x100
lea edx, [esp + 0xb4]
push edx
push ebp
call fcn.10001d70
add esp, 0xc
cmp dword [edi + 0x294], 0
jne 0x1000b210
cmp dword [edi + 0x26c], 0
je 0x1000b210
mov dword [edi + 0x294], 1
mov ebp, dword [esp + 0x9bc]
cmp ebp, 2
je 0x1000b275
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [edi + 0x294], 0
jne 0x1000b234
test ebp, ebp
je 0x1000b26f
cmp ebp, 1
jne 0x1000b23f
cmp cx, 2
jne 0x1000b26f
movzx eax, cx
sub eax, 2
je 0x1000b253
sub eax, 0x15
jne 0x1000b26f
mov eax, dword [esp + 0x32]
push eax
jmp 0x1000b258
mov ecx, dword [esp + 0x32]
push ecx
call ebx
movzx esi, ax
test ebp, ebp
je 0x1000b2cc
cmp ebp, 1
je 0x1000b342
mov cx, word [esp + 0x30]
inc ebp
cmp ebp, 2
jne 0x1000b227
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x568], ebp
mov eax, dword [edi + 0x158]
cmp eax, 0xffffffff
je 0x1000b294
push eax
push edi
call fcn.1001f860
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [edi + 0x158], eax
mov dword [edi + 0x278], 1
mov dword [edi + 0x574], 0x1c
mov ecx, dword [esp + 0x9b4]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100377f0
add esp, 0x9ac
ret
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, si
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
lea esi, [edi + 0x500]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.1002e460
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1000b279
push ebx
call sym.libcurl.dll_curl_easy_strerror
mov edx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.1000a2d0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.1001f860
mov dword [esi + 0x68], 1
add esp, 0x18
mov dword [edi + 0x574], 0
jmp 0x1000b2b2
lea ecx, [esp + 0x5b4]
lea edx, [esp + 0xb0]
mov al, byte [edx]
test al, al
je 0x1000b367
cmp al, 0x2e
jne 0x1000b35f
mov byte [ecx], 0x2c
jmp 0x1000b361
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x1000b350
movzx eax, si
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 sym.libcurl.dll_curl_msnprintf
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [edi + 0x500]
push 0x1003a880
push eax
call fcn.1002e460
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x1000b279
push ebx
call sym.libcurl.dll_curl_easy_strerror
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.1000a2d0
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.1001f860
add esp, 0x18
mov dword [edi + 0x574], 0
jmp 0x1000b2b2