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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0xa3207c]
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.009d5a90
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 0x9c178e
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c1590
sub ecx, edx
cmp ecx, 1
jbe 0x9c178e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c15a7
sub ecx, edx
cmp ecx, 0x16
jae 0x9c15bc
mov ecx, 0x16
jmp 0x9c15ca
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c15c1
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0xa320b8]
add esp, 8
mov dword [ebp - 0x614], eax
test eax, eax
jne 0x9c15f9
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x3a
je 0x9c1632
push 0x3a
push edi
call fcn.009d8160
add esp, 8
mov dword [ebp - 0x618], eax
test eax, eax
je 0x9c16a6
mov ecx, eax
mov eax, dword [ebp - 0x614]
sub ecx, edi
push ecx
push edi
push eax
call fcn.009dba80
mov edi, dword [ebp - 0x618]
add esp, 0xc
test edi, edi
je 0x9c16bd
push 0x3a
push edi
call fcn.009d8160
mov edi, eax
add esp, 8
test edi, edi
je 0x9c16bd
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.009e82b8
push eax
call fcn.0099e2b0
movzx eax, ax
push 0x2d
push edi
mov dword [ebp - 0x610], eax
call fcn.009d8160
add esp, 0x18
test eax, eax
je 0x9c1695
push 0xa
inc eax
push 0
push eax
call fcn.009e82b8
push eax
call fcn.0099e2b0
movzx ecx, ax
add esp, 0x10
mov dword [ebp - 0x60c], ecx
jmp 0x9c16bd
mov eax, dword [ebp - 0x610]
movzx ecx, ax
mov dword [ebp - 0x60c], ecx
jmp 0x9c16bd
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 0x9c16b0
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 0x9c177a
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 0x9c1746
sub eax, 1
je 0x9c1d82
sub eax, 1
jne 0x9c1750
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x620], ecx
jmp 0x9c1752
mov ecx, edi
mov dword [ebp - 0x620], ecx
jmp 0x9c1752
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 0x9c182f
jmp 0x9c1790
movzx eax, ax
mov dword [ebp - 0x610], eax
movzx eax, dx
mov dword [ebp - 0x60c], eax
jmp 0x9c1790
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 0x9c17f1
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ae7a0
push eax
push str.getsockname___failed:__s
push esi
call fcn.0099bc60
push edi
call dword [0xa320ac]
add esp, 0x1c
jmp 0x9c1d82
push 0x401
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x5f8]
push eax
movzx eax, word [ebp - 0x5fc]
push eax
call fcn.009c99a0
add esp, 0x10
test eax, eax
je 0x9c1d82
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.009a1610
add esp, 0x14
cmp eax, 1
jne 0x9c1859
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.00992c50
add esp, 8
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x9c1d60
mov edi, dword [eax]
push eax
push esi
mov dword [ebp - 0x618], edi
call fcn.009a18e0
add esp, 8
test edi, edi
je 0x9c1d60
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa320ac]
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.0099d2b0
add esp, 0x10
mov dword [ebp - 0x614], eax
test eax, eax
je 0x9c18d8
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 0x9c18a0
jmp 0x9c18e2
test edi, edi
jne 0x9c1908
mov eax, dword [ebp - 0x620]
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009ae7a0
push eax
push str.socket_failure:__s
push esi
call fcn.0099bc60
add esp, 0x18
jmp 0x9c1d82
push dword [edi + 0x10]
lea eax, [ebp - 0x5fc]
push dword [edi + 0x18]
push eax
call fcn.009d5bf0
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 0x9c1a12
nop dword [eax]
cmp word [ebp - 0x5fc], 2
jne 0x9c1958
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 0x9c1aac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x5fd], 0
je 0x9c19f8
cmp eax, 0x2741
jne 0x9c19f8
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.009ae7a0
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0099bd20
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 0x9c1a37
mov eax, dword [ebp - 0x610]
movzx edi, ax
mov byte [ebp - 0x5fd], 0
jmp 0x9c1a05
cmp eax, 0x2740
je 0x9c1a04
cmp eax, 0xd
jne 0x9c1a70
inc edi
cmp di, word [ebp - 0x60c]
jbe 0x9c1940
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.0099c620
add esp, 0x14
jmp 0x9c1d82
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ae7a0
push eax
push str.getsockname___failed:__s
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push edi
push esi
call fcn.0099c620
add esp, 0x24
jmp 0x9c1d82
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.009ae7a0
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.0099c620
add esp, 0x28
jmp 0x9c1d82
cmp di, word [ebp - 0x60c]
ja 0x9c1a12
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 0x9c1b1f
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ae7a0
push eax
push str.getsockname___failed:__s
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.0099c620
add esp, 0x24
jmp 0x9c1d82
push 1
push dword [ebp - 0x608]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x9c1b51
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ae7a0
push eax
push str.socket_failure:__s
jmp 0x9c1aff
push 0x2f
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x618]
call fcn.009a15e0
add esp, 0xc
cmp ebx, 2
je 0x9c1bd1
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 0x9c1b8d
test ebx, ebx
je 0x9c1bcb
cmp ebx, 1
jne 0x9c1b98
cmp cx, 2
jne 0x9c1bcb
movzx eax, cx
sub eax, 2
jne 0x9c1bc5
push dword [ebp - 0x5fa]
call edi
movzx eax, ax
mov dword [ebp - 0x618], eax
test ebx, ebx
je 0x9c1cd7
cmp ebx, 1
je 0x9c1c1e
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x604]
inc ebx
cmp ebx, 2
jne 0x9c1b80
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.009bf150
mov eax, dword [ebp - 0x608]
push 0x1c
push esi
mov dword [ebx + 0x134], eax
mov byte [ebx + 0x23d], 1
call fcn.009bf130
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
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 0x9c1c47
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x9c1c30
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.009acbf0
mov esi, dword [ebp - 0x62c]
lea eax, [ebp - 0x78]
push eax
push str.PORT
push 0xa1b514
push dword [ebp - 0x624]
push esi
call fcn.009d1690
mov edi, eax
add esp, 0x28
test edi, edi
je 0x9c1bd7
push edi
call fcn.009ae920
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.0099c620
push 0
push esi
call fcn.009bf130
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
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.009d1690
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x9c1bd7
push edi
call fcn.009ae920
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0099bc60
push dword [ebp - 0x608]
push dword [ebp - 0x604]
push esi
call fcn.0099c620
mov eax, dword [ebp - 0x624]
push 0
push esi
mov dword [eax + 0x78], 1
call fcn.009bf130
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00987b09
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.0099bc60
mov eax, dword [ebp - 0x614]
push eax
call dword [0xa320ac]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00987b09
mov esp, ebp
pop ebp
ret