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

Disassembly:
sub esp, 0xa28
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0xa24], eax
push ebx
push ebp
mov ebp, dword [edi]
push esi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x131]
push ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x138], bl
call fcn.1004db40
mov esi, dword [ebp + 0x95c]
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp + 0x95c]
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 1
cmp eax, ebx
je 0x10026d8e
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c60
sub eax, edx
cmp eax, 1
jbe 0x10026d8e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c77
sub eax, edx
cmp eax, 0x16
jae 0x10026c8c
mov eax, 0x16
jmp 0x10026c9a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c91
sub eax, edx
inc eax
push 1
push eax
call dword [0x1007b010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10026cc8
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
cmp byte [esi], 0x3a
jne 0x10026e05
mov ebp, esi
test ebp, ebp
je 0x10026d3e
push 0x3a
push ebp
call fcn.10050540
mov esi, eax
add esp, 8
test esi, esi
je 0x10026d3e
push 0xa
lea edx, [esi + 1]
push 0
push edx
call fcn.10050858
push eax
call fcn.10014470
movzx ebp, ax
push 0x2d
push esi
mov dword [esp + 0x34], ebp
call fcn.10050540
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x10026e3f
push 0xa
inc eax
push esi
push eax
call fcn.10050858
push eax
call fcn.10014470
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp bp, ax
jbe 0x10026d3e
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp byte [ebx], 0
je 0x10026d8e
mov edx, dword [edi + 0x8c]
mov eax, dword [edi + 0x50]
push 0x401
lea ecx, [esp + 0x230]
push ecx
mov ecx, dword [eax + 0x18]
push ebx
push edx
push ecx
call fcn.10011e30
mov edx, dword [edi + 0x50]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call fcn.10011e30
add esp, 0x18
sub eax, 0
je 0x10026e4b
sub eax, 1
je 0x10026de8
sub eax, 1
je 0x10026e77
mov eax, dword [edi + 0x1a8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10026e4f
push 0x80
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f380
mov edx, dword [esp + 0x1c]
push eax
push str.getsockname___failed:__s
push edx
call fcn.100149a0
push ebx
call dword [0x1007b004]
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
push 0x3a
push esi
call fcn.10050540
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10026e2a
mov ecx, ebp
sub ecx, esi
push ecx
push esi
push ebx
call fcn.1004def0
add esp, 0xc
jmp 0x10026cd3
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10026e30
jmp 0x10026d3e
movzx eax, bp
mov dword [esp + 0x18], eax
jmp 0x10026d3e
mov esi, ebx
jmp 0x10026e7e
movzx edx, word [esp + 0x2c]
push 0x401
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.1003fda0
add esp, 0x10
mov dword [esp + 0x24], 0
lea esi, [esp + 0x22c]
lea eax, [esp + 0x20]
push eax
push 0
push esi
push edi
call fcn.10016900
add esp, 0x10
cmp eax, 1
jne 0x10026ea2
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.1000ec00
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10026ebe
mov edx, dword [esp + 0x10]
mov ebp, dword [eax]
push eax
push edx
call fcn.10016b30
add esp, 8
test ebp, ebp
jne 0x10026ef5
mov eax, dword [esp + 0x10]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push eax
call fcn.100149a0
push ebx
call dword [0x1007b004]
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
push ebx
call dword [0x1007b004]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0xc], 0xffffffff
xor esi, esi
nop
lea ecx, [esp + 0xc]
push ecx
push 0
push ebp
push edi
call fcn.1001aa80
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x10026f36
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x10026f10
jmp 0x10026f3a
test ebp, ebp
jne 0x10026f7d
push 0x80
lea edx, [esp + 0xb0]
push edx
push esi
call fcn.1003f380
push eax
mov eax, dword [esp + 0x20]
push str.socket_failure:__s
push eax
call fcn.100149a0
add esp, 0x18
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call fcn.1004b910
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x14], ecx
movzx esi, ax
cmp ax, word [esp + 0x18]
ja 0x1002710e
mov ebx, dword [esp + 0x24]
nop
cmp word [esp + 0x2c], 2
jne 0x10026fc4
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10027107
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x10027048
cmp eax, 0x2741
jne 0x10027048
push 0x80
lea edx, [esp + 0xb0]
push edx
push eax
call fcn.1003f380
push eax
movzx eax, si
mov esi, dword [esp + 0x20]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.100148c0
mov eax, dword [edi + 0x1a8]
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10027065
movzx esi, word [esp + 0x1c]
xor ebx, ebx
jmp 0x10027055
cmp eax, 0x2740
je 0x10027054
cmp eax, 0xd
jne 0x100270b5
inc esi
cmp si, word [esp + 0x18]
jbe 0x10026fb0
jmp 0x1002710e
push 0x80
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f380
push eax
push str.getsockname___failed:__s
push esi
call fcn.100149a0
mov edx, dword [esp + 0x24]
push edx
push edi
call fcn.1001aa00
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
push 0x80
lea ecx, [esp + 0xb0]
push ecx
push eax
call fcn.1003f380
push eax
mov eax, dword [esp + 0x20]
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.100149a0
mov ecx, dword [esp + 0x28]
push ecx
push edi
call fcn.1001aa00
add esp, 0x24
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
cmp si, word [esp + 0x18]
jbe 0x10027148
mov edx, dword [esp + 0x10]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.100149a0
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.1001aa00
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100271bd
push 0x80
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f380
mov edx, dword [esp + 0x1c]
push eax
push str.getsockname___failed:__s
push edx
call fcn.100149a0
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.1001aa00
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
mov ecx, dword [esp + 0xc]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10027222
push 0x80
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f380
push eax
mov eax, dword [esp + 0x20]
push str.socket_failure:__s
push eax
call fcn.100149a0
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.1001aa00
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
push pe_nt_image_headers32
lea edx, [esp + 0x130]
push edx
push ebp
call fcn.10015e20
mov ebp, dword [esp + 0xa44]
add esp, 0xc
cmp ebp, 2
je 0x10027295
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x2c]
nop
test dword [edi + 0x294], 0x40000
jne 0x10027260
test ebp, ebp
je 0x1002728f
cmp ebp, 1
jne 0x1002726b
cmp cx, 2
jne 0x1002728f
movzx eax, cx
sub eax, 2
jne 0x1002728f
mov eax, dword [esp + 0x2e]
push eax
call ebx
movzx esi, ax
test ebp, ebp
je 0x100272f6
cmp ebp, 1
je 0x1002736c
mov cx, word [esp + 0x2c]
inc ebp
cmp ebp, 2
jne 0x10027250
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x530], ebp
mov eax, dword [edi + 0x1ac]
cmp eax, 0xffffffff
je 0x100272be
push eax
push edi
call fcn.1001aa00
add esp, 8
mov dword [edi + 0x1ac], 0xffffffff
mov eax, dword [esp + 0xc]
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x290], 1
mov dword [edi + 0x53c], 0x1c
mov ecx, dword [esp + 0xa30]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1004b8fc
add esp, 0xa28
ret
xor eax, eax
cmp word [esp + 0x2c], 2
movzx ecx, si
setne al
push ecx
lea edx, [esp + 0x130]
push edx
lea esi, [edi + 0x4b8]
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.10042650
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x10027299
push ebx
call fcn.1003ec60
mov ecx, dword [esp + 0x14]
push eax
push str.Failure_sending_EPRT_command:__s
push ecx
call fcn.100149a0
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.1001aa00
mov dword [esi + 0x78], 1
add esp, 0x18
mov dword [edi + 0x53c], 0
jmp 0x100272dc
lea ecx, [esp + 0x630]
lea edx, [esp + 0x12c]
lea ebx, [ebx]
mov al, byte [edx]
test al, al
je 0x10027397
cmp al, 0x2e
jne 0x1002738f
mov byte [ecx], 0x2c
jmp 0x10027391
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x10027380
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 fcn.10034d70
lea eax, [esp + 0x644]
push eax
push str.PORT
lea eax, [edi + 0x4b8]
push 0x1006b548
push eax
call fcn.10042650
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x10027299
push ebx
call fcn.1003ec60
mov ecx, dword [esp + 0x14]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.100149a0
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.1001aa00
add esp, 0x18
mov dword [edi + 0x53c], 0
jmp 0x100272dc