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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0xa0a230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push esi
push edi
push 0x2e
xor esi, esi
lea edx, [ebp - 0x33]
push esi
push edx
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x600], ecx
mov dword [ebp - 0x608], 0xffffffff
mov byte [ebp - 0x34], 0
call fcn.0096afe0
mov edi, dword [ebx + 0x5cc]
add esp, 0xc
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x610], esi
mov dword [ebp - 0x61c], 1
mov dword [ebp - 0x604], esi
cmp edi, esi
je 0x9a9d75
mov eax, edi
lea edx, [eax + 1]
jmp 0x9a9c50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a9c50
sub eax, edx
cmp eax, 1
jbe 0x9a9d75
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a9c67
sub eax, edx
cmp eax, 0x16
jae 0x9a9c7c
mov eax, 0x16
jmp 0x9a9c8a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a9c81
sub eax, edx
inc eax
push 1
push eax
call dword [0xa0b34c]
add esp, 8
mov dword [ebp - 0x604], eax
test eax, eax
jne 0x9a9cb6
pop edi
mov eax, 0x1b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x3a
jne 0x9a9df1
mov esi, edi
test esi, esi
je 0x9a9d35
push 0x3a
push esi
call fcn.0096fbc0
mov esi, eax
add esp, 8
test esi, esi
je 0x9a9d35
push 0xa
lea edx, [esi + 1]
push 0
push edx
call fcn.00974740
push eax
call fcn.0098e290
movzx edi, ax
push 0x2d
push esi
mov dword [ebp - 0x618], edi
call fcn.0096fbc0
add esp, 0x18
test eax, eax
je 0x9a9e2f
push 0xa
inc eax
push 0
push eax
call fcn.00974740
push eax
call fcn.0098e290
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0x610], eax
cmp di, ax
jbe 0x9a9d35
xor eax, eax
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x610], eax
mov esi, dword [ebp - 0x604]
cmp byte [esi], 0
je 0x9a9d75
mov edx, dword [ebp - 0x600]
mov eax, dword [edx + 0x48]
push 0x401
lea ecx, [ebp - 0x57c]
push ecx
mov ecx, dword [eax + 4]
push esi
push ecx
call fcn.009839d0
add esp, 0x10
sub eax, 0
je 0x9a9e37
dec eax
je 0x9a9ddc
dec eax
je 0x9a9e76
mov ecx, dword [ebp - 0x600]
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x5fc]
mov dword [ebp - 0x60c], 0x80
mov edx, dword [ecx + 0x148]
push eax
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9a9e3b
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009bc180
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0098bf60
mov ecx, dword [ebp - 0x604]
push ecx
call dword [0xa0b340]
add esp, 0x1c
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
push 0x3a
push edi
call fcn.0096fbc0
mov ecx, dword [ebp - 0x604]
mov esi, eax
add esp, 8
test esi, esi
je 0x9a9e1a
sub eax, edi
push eax
push edi
push ecx
call fcn.0096d4a0
add esp, 0xc
jmp 0x9a9cc1
sub ecx, edi
lea esp, [esp]
mov al, byte [edi]
mov byte [ecx + edi], al
inc edi
test al, al
jne 0x9a9e20
jmp 0x9a9d35
movzx eax, di
jmp 0x9a9d2f
mov edi, esi
jmp 0x9a9e7c
movzx ecx, word [ebp - 0x5fc]
push 0x401
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x5f8]
push eax
push ecx
call fcn.009be690
add esp, 0x10
test eax, eax
je 0x9a9ddc
mov esi, dword [ebp - 0x604]
mov dword [ebp - 0x61c], 0
lea edi, [ebp - 0x57c]
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push edi
push ebx
call fcn.00997390
add esp, 0x14
cmp eax, 1
jne 0x9a9ea6
lea eax, [ebp - 0x620]
push eax
push ebx
call fcn.00981dd0
add esp, 8
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x9a9ec6
mov esi, dword [eax]
push eax
push ebx
call fcn.00997600
add esp, 8
test esi, esi
jne 0x9a9ef1
mov esi, dword [ebp - 0x604]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.0098bf60
push esi
call dword [0xa0b340]
add esp, 0x10
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x604]
push ecx
call dword [0xa0b340]
add esp, 4
mov dword [ebp - 0x608], 0xffffffff
xor edi, edi
lea ecx, [ecx]
lea edx, [ebp - 0x608]
push edx
push 0
push esi
push ebx
call fcn.00992c20
add esp, 0x10
mov dword [ebp - 0x604], eax
test eax, eax
je 0x9a9f3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov edi, eax
test esi, esi
jne 0x9a9f10
jmp 0x9a9f42
test esi, esi
jne 0x9a9f78
push 0x100
lea eax, [ebp - 0x178]
push eax
push edi
call fcn.009bc180
push eax
push str.socket_failure:__s
push ebx
call fcn.0098bf60
add esp, 0x18
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
push ecx
push edx
lea eax, [ebp - 0x5fc]
push eax
call fcn.0096ab00
mov eax, dword [ebp - 0x618]
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x60c], ecx
movzx edi, ax
cmp ax, word [ebp - 0x610]
ja 0x9aa12a
mov edi, edi
cmp word [ebp - 0x5fc], 2
jne 0x9a9fc8
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5fa], ax
mov edx, dword [ebp - 0x60c]
mov ecx, dword [ebp - 0x608]
push edx
lea eax, [ebp - 0x5fc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x9aa121
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x61c], 0
je 0x9aa064
cmp eax, 0x2741
jne 0x9aa064
push 0x100
lea edx, [ebp - 0x178]
push edx
push eax
call fcn.009bc180
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.0098bef0
mov eax, dword [ebp - 0x600]
add esp, 0x1c
lea ecx, [ebp - 0x60c]
push ecx
lea edx, [ebp - 0x5fc]
mov dword [ebp - 0x60c], 0x80
mov ecx, dword [eax + 0x148]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x9aa083
movzx edi, word [ebp - 0x618]
mov dword [ebp - 0x61c], eax
jmp 0x9aa071
cmp eax, 0x2740
je 0x9aa070
cmp eax, 0xd
jne 0x9aa0d3
inc edi
cmp di, word [ebp - 0x610]
jbe 0x9a9fb0
jmp 0x9aa12a
push 0x100
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009bc180
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0098bf60
mov eax, dword [ebp - 0x608]
mov ecx, dword [ebp - 0x600]
push eax
push ecx
push ebx
call fcn.00992ba0
add esp, 0x24
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x178]
push edx
push eax
call fcn.009bc180
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push ebx
call fcn.0098bf60
mov ecx, dword [ebp - 0x608]
mov edx, dword [ebp - 0x600]
push ecx
push edx
push ebx
call fcn.00992ba0
add esp, 0x28
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
cmp di, word [ebp - 0x610]
jbe 0x9aa161
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.0098bf60
mov eax, dword [ebp - 0x608]
mov ecx, dword [ebp - 0x600]
push eax
push ecx
push ebx
call fcn.00992ba0
add esp, 0x14
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x608]
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x5fc]
push eax
push ecx
mov dword [ebp - 0x60c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x9aa083
mov edx, dword [ebp - 0x608]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x9aa1f1
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009bc180
push eax
push str.socket_failure:__s
push ebx
call fcn.0098bf60
mov ecx, dword [ebp - 0x608]
mov edx, dword [ebp - 0x600]
push ecx
push edx
push ebx
call fcn.00992ba0
add esp, 0x24
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
push 0x2f
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.009966b0
mov edi, dword [ebp - 0x614]
add esp, 0xc
cmp edi, 2
je 0x9aa276
mov cx, word [ebp - 0x5fc]
jmp 0x9aa220
mov edx, dword [ebp - 0x600]
cmp dword [edx + 0x2d8], 0
jne 0x9aa233
test edi, edi
je 0x9aa26a
cmp edi, 1
jne 0x9aa23e
cmp cx, 2
jne 0x9aa26a
movzx eax, cx
sub eax, 2
jne 0x9aa26a
mov eax, dword [ebp - 0x5fa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
test edi, edi
je 0x9aa2c9
cmp edi, 1
je 0x9aa361
mov cx, word [ebp - 0x5fc]
inc edi
cmp edi, 2
jne 0x9aa220
mov dword [ebp - 0x614], edi
mov esi, dword [ebp - 0x600]
mov eax, dword [ebp - 0x614]
push ebx
mov dword [esi + 0x570], eax
call fcn.009a9770
mov ecx, dword [ebp - 0x608]
add esp, 4
mov edx, 0x1c
mov eax, ebx
mov dword [esi + 0x14c], ecx
mov dword [esi + 0x280], 1
call fcn.009a9a90
mov eax, dword [ebp - 0x604]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp word [ebp - 0x5fc], 2
push esi
setne al
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x614], edi
mov edi, dword [ebp - 0x600]
add edi, 0x4e8
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push ebx
call fcn.009c2cb0
add esp, 0x1c
mov dword [ebp - 0x604], eax
test eax, eax
je 0x9aa276
mov esi, eax
push esi
call fcn.009bb6b0
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.0098bf60
mov ecx, dword [ebp - 0x608]
mov edx, dword [ebp - 0x600]
push ecx
push edx
push ebx
call fcn.00992ba0
add esp, 0x1c
xor edx, edx
mov eax, ebx
mov dword [edi + 0x88], 1
call fcn.009a9a90
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0096fab0
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x614], edi
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x34]
lea ecx, [ecx]
mov al, byte [edx]
test al, al
je 0x9aa385
cmp al, 0x2e
jne 0x9aa37f
mov byte [ecx], 0x2c
jmp 0x9aa381
mov byte [ecx], al
inc ecx
inc edx
jne 0x9aa370
mov eax, esi
mov edx, esi
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.009959f0
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x600]
push str.PORT
push 0x9f6ebc
add eax, 0x4e8
push eax
push ebx
call fcn.009c2cb0
add esp, 0x28
mov dword [ebp - 0x604], eax
test eax, eax
je 0x9aa276
mov edi, eax
push edi
call fcn.009bb6b0
push eax
push str.Failure_sending_PORT_command:__s
push ebx
call fcn.0098bf60
mov ecx, dword [ebp - 0x608]
mov edx, dword [ebp - 0x600]
push ecx
push edx
push ebx
call fcn.00992ba0
add esp, 0x1c
xor edx, edx
mov eax, ebx
call fcn.009a9a90
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0096fab0
mov esp, ebp
pop ebp
ret