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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0xa3d07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2f
push 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x604], eax
add eax, 0x420
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x62c], esi
mov dword [ebp - 0x608], 0xffffffff
call fcn.009e1060
mov edi, dword [esi + 0x530]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x60c], eax
mov byte [ebp - 0x5fd], 1
mov dword [ebp - 0x614], eax
test edi, edi
je 0x9ccd6e
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccb70
sub ecx, edx
cmp ecx, 1
jbe 0x9ccd6e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccb87
sub ecx, edx
cmp ecx, 0x16
jae 0x9ccb9c
mov ecx, 0x16
jmp 0x9ccbaa
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccba1
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0xa3d0b8]
add esp, 8
mov dword [ebp - 0x614], eax
test eax, eax
jne 0x9ccbd9
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00993100
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x3a
je 0x9ccc12
push 0x3a
push edi
call fcn.009e3730
add esp, 8
mov dword [ebp - 0x618], eax
test eax, eax
je 0x9ccc86
mov ecx, eax
mov eax, dword [ebp - 0x614]
sub ecx, edi
push ecx
push edi
push eax
call fcn.009e7050
mov edi, dword [ebp - 0x618]
add esp, 0xc
test edi, edi
je 0x9ccc9d
push 0x3a
push edi
call fcn.009e3730
mov edi, eax
add esp, 8
test edi, edi
je 0x9ccc9d
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.009f3888
push eax
call fcn.009a98a0
movzx eax, ax
push 0x2d
push edi
mov dword [ebp - 0x610], eax
call fcn.009e3730
add esp, 0x18
test eax, eax
je 0x9ccc75
push 0xa
inc eax
push 0
push eax
call fcn.009f3888
push eax
call fcn.009a98a0
movzx ecx, ax
add esp, 0x10
mov dword [ebp - 0x60c], ecx
jmp 0x9ccc9d
mov eax, dword [ebp - 0x610]
movzx ecx, ax
mov dword [ebp - 0x60c], ecx
jmp 0x9ccc9d
mov ecx, dword [ebp - 0x614]
sub ecx, edi
nop
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x9ccc90
mov edi, dword [ebp - 0x60c]
xor ecx, ecx
cmp word [ebp - 0x610], di
movzx eax, di
cmovbe ecx, eax
mov eax, dword [ebp - 0x610]
movzx edx, cx
xor ecx, ecx
cmp word [ebp - 0x610], di
mov edi, dword [ebp - 0x614]
movzx eax, ax
cmovbe ecx, eax
mov dword [ebp - 0x60c], edx
movzx eax, cx
cmp byte [edi], 0
mov dword [ebp - 0x618], eax
je 0x9ccd5a
push 0x401
lea eax, [ebp - 0x57c]
push eax
mov eax, dword [ebp - 0x604]
push edi
mov eax, dword [eax + 0x48]
push dword [eax + 4]
call fcn.00417cb0
add esp, 0x10
sub eax, 0
je 0x9ccd26
sub eax, 1
je 0x9cd362
sub eax, 1
jne 0x9ccd30
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x620], ecx
jmp 0x9ccd32
mov ecx, edi
mov dword [ebp - 0x620], ecx
jmp 0x9ccd32
xor ecx, ecx
mov eax, dword [ebp - 0x618]
movzx edx, ax
mov eax, dword [ebp - 0x60c]
movzx eax, ax
mov dword [ebp - 0x610], edx
mov dword [ebp - 0x60c], eax
test ecx, ecx
jne 0x9cce0f
jmp 0x9ccd70
movzx eax, ax
mov dword [ebp - 0x610], eax
movzx eax, dx
mov dword [ebp - 0x60c], eax
jmp 0x9ccd70
xor edi, edi
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x61c], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x604]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9ccdd1
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9d90
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a7250
push edi
call dword [0xa3d0ac]
add esp, 0x1c
jmp 0x9cd362
push 0x401
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x5f8]
push eax
movzx eax, word [ebp - 0x5fc]
push eax
call fcn.009d4f80
add esp, 0x10
test eax, eax
je 0x9cd362
lea ecx, [ebp - 0x57c]
mov byte [ebp - 0x5fd], 0
mov dword [ebp - 0x620], ecx
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push ecx
push esi
call fcn.009acc00
add esp, 0x14
cmp eax, 1
jne 0x9cce39
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.0099e240
add esp, 8
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x9cd340
mov edi, dword [eax]
push eax
push esi
mov dword [ebp - 0x618], edi
call fcn.009aced0
add esp, 8
test edi, edi
je 0x9cd340
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa3d0ac]
add esp, 4
mov dword [ebp - 0x620], 0
nop dword [eax + eax]
lea eax, [ebp - 0x608]
push eax
push 0
push edi
push esi
call fcn.009a88a0
add esp, 0x10
mov dword [ebp - 0x614], eax
test eax, eax
je 0x9cceb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x618], edi
test edi, edi
jne 0x9cce80
jmp 0x9ccec2
test edi, edi
jne 0x9ccee8
mov eax, dword [ebp - 0x620]
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009b9d90
push eax
push str.socket_failure:__s
push esi
call fcn.009a7250
add esp, 0x18
jmp 0x9cd362
push dword [edi + 0x10]
lea eax, [ebp - 0x5fc]
push dword [edi + 0x18]
push eax
call fcn.009e11c0
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp - 0x610]
movzx edi, ax
cmp ax, word [ebp - 0x60c]
ja 0x9ccff2
nop dword [eax]
cmp word [ebp - 0x5fc], 2
jne 0x9ccf38
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5fa], ax
push dword [ebp - 0x61c]
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x608]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x9cd08c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x5fd], 0
je 0x9ccfd8
cmp eax, 0x2741
jne 0x9ccfd8
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.009b9d90
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.009a7310
mov edi, dword [ebp - 0x604]
lea eax, [ebp - 0x61c]
add esp, 0x1c
mov dword [ebp - 0x61c], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [edi + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x9cd017
mov eax, dword [ebp - 0x610]
movzx edi, ax
mov byte [ebp - 0x5fd], 0
jmp 0x9ccfe5
cmp eax, 0x2740
je 0x9ccfe4
cmp eax, 0xd
jne 0x9cd050
inc edi
cmp di, word [ebp - 0x60c]
jbe 0x9ccf20
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7c10
add esp, 0x14
jmp 0x9cd362
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9d90
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push edi
push esi
call fcn.009a7c10
add esp, 0x24
jmp 0x9cd362
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009b9d90
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7c10
add esp, 0x28
jmp 0x9cd362
cmp di, word [ebp - 0x60c]
ja 0x9ccff2
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x61c], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x608]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9cd0ff
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9d90
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7c10
add esp, 0x24
jmp 0x9cd362
push 1
push dword [ebp - 0x608]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x9cd131
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9d90
push eax
push str.socket_failure:__s
jmp 0x9cd0df
push 0x2f
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x618]
call fcn.009acbd0
add esp, 0xc
cmp ebx, 2
je 0x9cd1b1
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x604]
nop dword [eax]
cmp byte [eax + 0x253], 0
jne 0x9cd16d
test ebx, ebx
je 0x9cd1ab
cmp ebx, 1
jne 0x9cd178
cmp cx, 2
jne 0x9cd1ab
movzx eax, cx
sub eax, 2
jne 0x9cd1a5
push dword [ebp - 0x5fa]
call edi
movzx eax, ax
mov dword [ebp - 0x618], eax
test ebx, ebx
je 0x9cd2b7
cmp ebx, 1
je 0x9cd1fe
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x604]
inc ebx
cmp ebx, 2
jne 0x9cd160
mov edi, dword [ebp - 0x614]
mov eax, dword [ebp - 0x624]
mov dword [eax + 0x78], ebx
mov ebx, dword [ebp - 0x604]
push ebx
push esi
call fcn.009ca730
mov eax, dword [ebp - 0x608]
push 0x1c
push esi
mov dword [ebx + 0x134], eax
mov byte [ebx + 0x23d], 1
call fcn.009ca710
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00993100
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x78]
mov esi, 0x2c
lea edi, [ebp - 0x34]
nop dword [eax]
mov cl, byte [edi]
test cl, cl
je 0x9cd227
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x9cd210
mov eax, dword [ebp - 0x618]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.009b81e0
mov esi, dword [ebp - 0x62c]
lea eax, [ebp - 0x78]
push eax
push str.PORT
push 0xa265e4
push dword [ebp - 0x624]
push esi
call fcn.009dcc60
mov edi, eax
add esp, 0x28
test edi, edi
je 0x9cd1b7
push edi
call fcn.009b9f10
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7c10
push 0
push esi
call fcn.009ca710
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00993100
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x5fc], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push dword [ebp - 0x624]
push esi
call fcn.009dcc60
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x9cd1b7
push edi
call fcn.009b9f10
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.009a7250
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7c10
mov eax, dword [ebp - 0x624]
push 0
push esi
mov dword [eax + 0x78], 1
call fcn.009ca710
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00993100
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x620]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.009a7250
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa3d0ac]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00993100
mov esp, ebp
pop ebp
ret