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

Disassembly:
sub esp, 0x660
mov eax, dword [0x100a23c0]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66c]
push esi
push edi
mov edi, dword [esp + 0x678]
mov esi, dword [ebp + 0x18]
push 0x2e
push 0
mov dword [esp + 0x44], ebp
lea eax, [esi + 0x350]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc9]
push eax
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0xcc], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 0x50c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x1006a170
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10069f87
sub edx, dword [esp + 0x18]
cmp edx, 1
jbe 0x1006a170
mov al, byte [ecx]
cmp al, 0x5b
jne 0x10069fcc
lea ebx, [ecx + 1]
mov esi, ebx
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebx, eax
mov eax, ecx
mov dword [esp + 0x34], ebx
sub eax, esi
mov ebx, ecx
neg ebx
sbb ebx, ebx
and ebx, eax
jmp 0x1006a006
cmp al, 0x3a
je 0x1006a00e
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x24]
mov ebx, esi
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x1006a067
lea ecx, [esp + 0x48]
sub ebx, eax
push ecx
push eax
push 0x17
call fcn.10062060
add esp, 0xc
lea ecx, [eax - 1]
neg ecx
sbb ecx, ecx
and ecx, esi
xor esi, esi
xor edx, edx
test ecx, ecx
je 0x1006a07d
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x1006a07d
push 0xa
push edx
inc eax
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.10050060
push 0x2d
push dword [esp + 0x38]
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x1006a063
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.10050060
add esp, 0x10
movzx edx, ax
jmp 0x1006a07d
mov edx, esi
jmp 0x1006a07d
mov ebx, eax
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1006a070
sub ebx, ecx
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x1006a15a
cmp ebx, 0x32
jae 0x1006a29c
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0xf8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x274]
add esp, 0xc
mov byte [esp + ebx + 0xf0], 0
push 0x401
push eax
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esi + 0x24]
push dword [esi + 0x42c]
add eax, 0x10
push eax
call fcn.10088310
add esp, 4
push eax
mov eax, dword [esi + 0x24]
push dword [eax]
call fcn.1004a450
add esp, 0x18
sub eax, 0
je 0x1006a12b
sub eax, 1
je 0x1006a62a
sub eax, 1
jne 0x1006a138
lea eax, [esp + 0x268]
mov dword [esp + 0x30], eax
jmp 0x1006a13a
lea eax, [esp + 0xf0]
mov dword [esp + 0x30], eax
jmp 0x1006a13a
xor eax, eax
mov ecx, dword [esp + 0x24]
movzx ebx, cx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
movzx ebx, cx
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x1006a206
jmp 0x1006a170
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
movzx eax, ax
mov dword [esp + 0x28], eax
movzx eax, cx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x108]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1006a1b6
push pe_nt_image_headers32
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f6b0
push eax
push str.getsockname___failed:__s
jmp 0x1006a293
mov ax, word [esp + 0x40]
cmp ax, 0x17
je 0x1006a1ca
lea ecx, [esp + 0x44]
movzx eax, ax
jmp 0x1006a1d3
lea ecx, [esp + 0x48]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x26c]
movzx eax, ax
push edx
push ecx
push eax
call fcn.1007cbc0
add esp, 0x10
test eax, eax
je 0x1006a29c
lea eax, [esp + 0x268]
xor dl, dl
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], dl
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push eax
push ebp
call fcn.10054a00
add esp, 0x14
cmp eax, 1
jne 0x1006a22c
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.10046bb0
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1006a612
mov ebx, dword [eax]
push eax
push ebp
call fcn.10054f60
add esp, 8
test ebx, ebx
je 0x1006a612
nop dword [eax]
lea eax, [esp + 0x20]
push eax
movzx eax, byte [esi + 0x436]
push eax
push 0
push ebx
push ebp
call fcn.10078690
add esp, 0x14
test eax, eax
je 0x1006a2de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1006a250
push pe_nt_image_headers32
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.1003f6b0
push eax
push str.socket_failure:__s
push ebp
call fcn.1004dc50
add esp, 0x18
mov esi, 0x1e
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x3fe], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1006a2c3
push eax
push ebx
push ebp
call fcn.10078660
add esp, 0xc
mov ecx, dword [esp + 0x66c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008ad82
add esp, 0x660
ret
push dword [ebx + 0x10]
lea eax, [esp + 0x44]
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x1006a5ff
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x18]
mov word [esp + 0x46], ax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1006a3f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x17]
test cl, cl
je 0x1006a3ad
cmp eax, 0x2741
jne 0x1006a3ad
push pe_nt_image_headers32
lea eax, [esp + 0x16c]
push eax
push 0x2741
call fcn.1003f6b0
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push ebp
call fcn.1004dd20
add esp, 0x1c
mov dword [esp + 0x18], 0x80
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x108]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006a192
mov eax, dword [esp + 0x28]
xor dl, dl
movzx esi, ax
mov byte [esp + 0x17], dl
jmp 0x1006a30a
cmp eax, 0x2740
je 0x1006a3b9
cmp eax, 0xd
jne 0x1006a3c8
inc esi
mov byte [esp + 0x17], cl
movzx eax, si
mov esi, eax
jmp 0x1006a2ff
push pe_nt_image_headers32
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.1003f6b0
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push ebp
call fcn.1004dc50
add esp, 0x1c
jmp 0x1006a29c
cmp si, word [esp + 0x1c]
ja 0x1006a5ff
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006a192
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1006a44a
push pe_nt_image_headers32
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1006a287
push 0x2f
lea eax, [esp + 0xc4]
push eax
push ebx
call fcn.100549b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x1ba], 0
jne 0x1006a47a
cmp byte [eax + 0x1b4], 0
je 0x1006a47a
mov byte [eax + 0x1ba], 1
cmp edi, 2
je 0x1006a4da
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x40]
nop word [eax + eax]
cmp byte [eax + 0x1ba], 0
jne 0x1006a49d
test edi, edi
je 0x1006a4d4
cmp edi, 1
jne 0x1006a4a8
cmp cx, 2
jne 0x1006a4d4
movzx eax, cx
sub eax, 2
je 0x1006a4b5
sub eax, 0x15
jne 0x1006a4d0
push dword [esp + 0x42]
call esi
movzx ebx, ax
test edi, edi
je 0x1006a5aa
cmp edi, 1
je 0x1006a51a
mov cx, word [esp + 0x40]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x1006a490
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
mov dword [ebx + 0xa0], edi
mov ebx, dword [esp + 0x10]
push eax
push 1
push ebx
push ebp
call fcn.10078440
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1006a2a5
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov byte [eax + 0x3fe], 0x1c
jmp 0x1006a2af
lea edx, [esp + 0x124]
mov ebp, 0x2c
lea esi, [esp + 0xc0]
nop dword [eax]
mov cl, byte [esi]
test cl, cl
je 0x1006a547
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add esi, 1
jne 0x1006a530
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.10051a90
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x138]
mov ebp, dword [esp + 0x50]
push eax
push str.PORT
push str._s__s
push ebx
push ebp
call fcn.10086da0
mov esi, eax
add esp, 0x28
test esi, esi
je 0x1006a4de
push esi
call fcn.1003f820
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.1004dc50
add esp, 0x10
jmp 0x1006a2a1
movzx eax, bx
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xc4]
push eax
xor eax, eax
cmp word [esp + 0x48], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push ebp
call fcn.10086da0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1006a4de
push esi
call fcn.1003f820
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.1004dc50
add esp, 0x10
jmp 0x1006a2a1
push str.bind___failed__we_ran_out_of_ports
push ebp
call fcn.1004dc50
add esp, 8
jmp 0x1006a29c
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.1004dc50
add esp, 0xc
jmp 0x1006a29c
mov ebx, esi
mov esi, 0x1e
jmp 0x1006a2a5