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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0xa3e07c]
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.009e1150
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 0x9cce2e
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccc30
sub ecx, edx
cmp ecx, 1
jbe 0x9cce2e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccc47
sub ecx, edx
cmp ecx, 0x16
jae 0x9ccc5c
mov ecx, 0x16
jmp 0x9ccc6a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9ccc61
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0xa3e0b8]
add esp, 8
mov dword [ebp - 0x614], eax
test eax, eax
jne 0x9ccc99
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x3a
je 0x9cccd2
push 0x3a
push edi
call fcn.009e3820
add esp, 8
mov dword [ebp - 0x618], eax
test eax, eax
je 0x9ccd46
mov ecx, eax
mov eax, dword [ebp - 0x614]
sub ecx, edi
push ecx
push edi
push eax
call fcn.009e7140
mov edi, dword [ebp - 0x618]
add esp, 0xc
test edi, edi
je 0x9ccd5d
push 0x3a
push edi
call fcn.009e3820
mov edi, eax
add esp, 8
test edi, edi
je 0x9ccd5d
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.009f3978
push eax
call fcn.009a9940
movzx eax, ax
push 0x2d
push edi
mov dword [ebp - 0x610], eax
call fcn.009e3820
add esp, 0x18
test eax, eax
je 0x9ccd35
push 0xa
inc eax
push 0
push eax
call fcn.009f3978
push eax
call fcn.009a9940
movzx ecx, ax
add esp, 0x10
mov dword [ebp - 0x60c], ecx
jmp 0x9ccd5d
mov eax, dword [ebp - 0x610]
movzx ecx, ax
mov dword [ebp - 0x60c], ecx
jmp 0x9ccd5d
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 0x9ccd50
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 0x9cce1a
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 0x9ccde6
sub eax, 1
je 0x9cd422
sub eax, 1
jne 0x9ccdf0
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x620], ecx
jmp 0x9ccdf2
mov ecx, edi
mov dword [ebp - 0x620], ecx
jmp 0x9ccdf2
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 0x9ccecf
jmp 0x9cce30
movzx eax, ax
mov dword [ebp - 0x610], eax
movzx eax, dx
mov dword [ebp - 0x60c], eax
jmp 0x9cce30
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 0x9cce91
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9e30
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a72f0
push edi
call dword [0xa3e0ac]
add esp, 0x1c
jmp 0x9cd422
push 0x401
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x5f8]
push eax
movzx eax, word [ebp - 0x5fc]
push eax
call fcn.009d5040
add esp, 0x10
test eax, eax
je 0x9cd422
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.009acca0
add esp, 0x14
cmp eax, 1
jne 0x9ccef9
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.0099e2e0
add esp, 8
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x9cd400
mov edi, dword [eax]
push eax
push esi
mov dword [ebp - 0x618], edi
call fcn.009acf70
add esp, 8
test edi, edi
je 0x9cd400
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa3e0ac]
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.009a8940
add esp, 0x10
mov dword [ebp - 0x614], eax
test eax, eax
je 0x9ccf78
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 0x9ccf40
jmp 0x9ccf82
test edi, edi
jne 0x9ccfa8
mov eax, dword [ebp - 0x620]
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009b9e30
push eax
push str.socket_failure:__s
push esi
call fcn.009a72f0
add esp, 0x18
jmp 0x9cd422
push dword [edi + 0x10]
lea eax, [ebp - 0x5fc]
push dword [edi + 0x18]
push eax
call fcn.009e12b0
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 0x9cd0b2
nop dword [eax]
cmp word [ebp - 0x5fc], 2
jne 0x9ccff8
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 0x9cd14c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x5fd], 0
je 0x9cd098
cmp eax, 0x2741
jne 0x9cd098
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.009b9e30
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.009a73b0
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 0x9cd0d7
mov eax, dword [ebp - 0x610]
movzx edi, ax
mov byte [ebp - 0x5fd], 0
jmp 0x9cd0a5
cmp eax, 0x2740
je 0x9cd0a4
cmp eax, 0xd
jne 0x9cd110
inc edi
cmp di, word [ebp - 0x60c]
jbe 0x9ccfe0
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7cb0
add esp, 0x14
jmp 0x9cd422
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9e30
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push edi
push esi
call fcn.009a7cb0
add esp, 0x24
jmp 0x9cd422
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009b9e30
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7cb0
add esp, 0x28
jmp 0x9cd422
cmp di, word [ebp - 0x60c]
ja 0x9cd0b2
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 0x9cd1bf
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9e30
push eax
push str.getsockname___failed:__s
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7cb0
add esp, 0x24
jmp 0x9cd422
push 1
push dword [ebp - 0x608]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x9cd1f1
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009b9e30
push eax
push str.socket_failure:__s
jmp 0x9cd19f
push 0x2f
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x618]
call fcn.009acc70
add esp, 0xc
cmp ebx, 2
je 0x9cd271
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 0x9cd22d
test ebx, ebx
je 0x9cd26b
cmp ebx, 1
jne 0x9cd238
cmp cx, 2
jne 0x9cd26b
movzx eax, cx
sub eax, 2
jne 0x9cd265
push dword [ebp - 0x5fa]
call edi
movzx eax, ax
mov dword [ebp - 0x618], eax
test ebx, ebx
je 0x9cd377
cmp ebx, 1
je 0x9cd2be
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x604]
inc ebx
cmp ebx, 2
jne 0x9cd220
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.009ca7f0
mov eax, dword [ebp - 0x608]
push 0x1c
push esi
mov dword [ebx + 0x134], eax
mov byte [ebx + 0x23d], 1
call fcn.009ca7d0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
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 0x9cd2e7
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x9cd2d0
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.009b8280
mov esi, dword [ebp - 0x62c]
lea eax, [ebp - 0x78]
push eax
push str.PORT
push 0xa26af4
push dword [ebp - 0x624]
push esi
call fcn.009dcd40
mov edi, eax
add esp, 0x28
test edi, edi
je 0x9cd277
push edi
call fcn.009b9fc0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7cb0
push 0
push esi
call fcn.009ca7d0
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
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.009dcd40
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x9cd277
push edi
call fcn.009b9fc0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.009a72f0
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.009a7cb0
mov eax, dword [ebp - 0x624]
push 0
push esi
mov dword [eax + 0x78], 1
call fcn.009ca7d0
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
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.009a72f0
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa3e0ac]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0099319a
mov esp, ebp
pop ebp
ret