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

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b0]
push ebx
push ebp
mov ebp, dword [edi]
push esi
xor ebx, ebx
push 0xff
lea ecx, [esp + 0xb5]
push ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xbc], bl
call fcn.10088b00
mov esi, dword [ebp + 0x3a4]
mov dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x3a4]
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 1
cmp eax, ebx
je 0x1006d338
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006d1f0
sub eax, edx
cmp eax, 1
jbe 0x1006d338
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006d207
sub eax, edx
cmp eax, 0x41
jae 0x1006d21c
mov eax, 0x41
jmp 0x1006d22a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006d221
sub eax, edx
inc eax
push 1
push eax
call dword [0x100d9010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1006d258
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.10088aee
add esp, 0x9ac
ret
mov al, byte [esi]
cmp al, 0x5b
jne 0x1006d3aa
lea edx, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x28], edx
call fcn.10087220
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1006d2fc
mov eax, dword [esp + 0x20]
mov ecx, ebp
sub ecx, eax
push ecx
push eax
push ebx
call fcn.10088520
add esp, 0xc
test ebp, ebp
je 0x1006d2fc
push 0x3a
push ebp
call fcn.10087220
mov esi, eax
add esp, 8
test esi, esi
je 0x1006d2fc
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.100884f0
push eax
call fcn.1004eb70
movzx ebp, ax
push 0x2d
push esi
mov dword [esp + 0x34], ebp
call fcn.10087220
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x1006d41f
push 0xa
inc eax
push esi
push eax
call fcn.100884f0
push eax
call fcn.1004eb70
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp bp, ax
jbe 0x1006d2fc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp byte [ebx], 0
je 0x1006d338
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0x4c]
push 0x401
lea eax, [esp + 0x1b4]
push eax
mov eax, dword [edx + 4]
push ebx
push ecx
push eax
call sym.__f425c2d2f0184a739725f4d6c646cf09.dll___62725529c38447f08b02d826b54c2ad2
add esp, 0x14
sub eax, 0
je 0x1006d42b
dec eax
je 0x1006d38d
dec eax
je 0x1006d465
mov eax, dword [edi + 0x154]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1006d42f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1004d0b0
mov ecx, dword [esp + 0x18]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.10059590
add esp, 0x14
test ebx, ebx
je 0x1006d38d
push ebx
call dword [0x100d9004]
add esp, 4
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.10088aee
add esp, 0x9ac
ret
cmp al, 0x3a
jne 0x1006d3b5
mov ebp, esi
jmp 0x1006d291
push 0x3a
push esi
call fcn.10087220
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1006d40a
lea edx, [esp + 0x30]
push edx
push esi
push 0x17
call fcn.1005d7c0
add esp, 0xc
cmp eax, 1
jne 0x1006d3ff
xor eax, eax
mov edx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
sub edx, esi
jmp 0x1006d3f0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1006d3f0
jmp 0x1006d2fc
mov eax, ebp
sub eax, esi
push eax
push esi
jmp 0x1006d288
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1006d410
jmp 0x1006d2fc
movzx edx, bp
mov dword [esp + 0x18], edx
jmp 0x1006d2fc
mov esi, ebx
jmp 0x1006d46c
movzx eax, word [esp + 0x30]
push 0x401
lea edx, [esp + 0x1b4]
push edx
cmp eax, 0x17
je 0x1006d44e
lea ecx, [esp + 0x3c]
push ecx
push eax
jmp 0x1006d455
lea eax, [esp + 0x40]
push eax
push 0x17
call fcn.10060650
add esp, 0x10
mov dword [esp + 0x28], 0
lea esi, [esp + 0x1b0]
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push edi
call fcn.10050540
add esp, 0x10
cmp eax, 1
jne 0x1006d490
lea edx, [esp + 0x24]
push edx
push edi
call fcn.1004f660
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006d4ac
mov ebp, dword [eax]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.10050750
add esp, 8
test ebp, ebp
jne 0x1006d4c4
mov ecx, dword [esp + 0x10]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.10059590
add esp, 0xc
jmp 0x1006d37f
test ebx, ebx
je 0x1006d4d2
push ebx
call dword [0x100d9004]
add esp, 4
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], 0xffffffff
xor esi, esi
lea edx, [esp + 0xc]
push edx
push 0
push ebp
push edi
call fcn.1005c4d0
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x1006d508
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x1006d4e2
jmp 0x1006d50c
test ebp, ebp
jne 0x1006d52b
push esi
push edi
call fcn.1004d0b0
push eax
mov eax, dword [esp + 0x1c]
push str.socket_failure:__s
push eax
call fcn.10059590
add esp, 0x14
jmp 0x1006d38d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
call fcn.10088b90
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 0x1006d65f
mov ebx, dword [esp + 0x28]
lea ecx, [ecx]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1006d658
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x1006d5e4
cmp eax, 0x2741
jne 0x1006d5e4
push eax
push edi
call fcn.1004d0b0
movzx edx, si
mov esi, dword [esp + 0x18]
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.10059500
mov edx, dword [edi + 0x154]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006d5fe
movzx esi, word [esp + 0x1c]
xor ebx, ebx
jmp 0x1006d5f1
cmp eax, 0x2740
je 0x1006d5f0
cmp eax, 0xd
jne 0x1006d62a
inc esi
cmp si, word [esp + 0x18]
jbe 0x1006d560
jmp 0x1006d65f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1004d0b0
push eax
push str.getsockname___failed:__s
push esi
call fcn.10059590
mov eax, dword [esp + 0x20]
push eax
push edi
call fcn.1005c470
add esp, 0x1c
jmp 0x1006d38d
push eax
push edi
call fcn.1004d0b0
mov edx, dword [esp + 0x18]
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__failed:__s
push edx
call fcn.10059590
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.1005c470
add esp, 0x20
jmp 0x1006d38d
cmp si, word [esp + 0x18]
jbe 0x1006d681
mov ecx, dword [esp + 0x10]
push str.bind___failed__we_ran_out_of_ports_
push ecx
call fcn.10059590
mov edx, dword [esp + 0x14]
push edx
push edi
call fcn.1005c470
add esp, 0x10
jmp 0x1006d38d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1006d6d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1004d0b0
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x20]
push eax
call fcn.10059590
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.1005c470
add esp, 0x1c
jmp 0x1006d38d
mov edx, dword [esp + 0xc]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1006d6f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1004d0b0
push eax
push str.socket_failure:__s
jmp 0x1006d6b5
push 0x100
lea edx, [esp + 0xb4]
push edx
push ebp
call fcn.10050290
add esp, 0xc
cmp dword [edi + 0x290], 0
jne 0x1006d72a
cmp dword [edi + 0x268], 0
je 0x1006d72a
mov dword [edi + 0x290], 1
mov ebp, dword [esp + 0x2c]
cmp ebp, 2
je 0x1006d78e
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
mov edi, edi
cmp dword [edi + 0x290], 0
jne 0x1006d74d
test ebp, ebp
je 0x1006d788
cmp ebp, 1
jne 0x1006d758
cmp cx, 2
jne 0x1006d788
movzx eax, cx
sub eax, 2
je 0x1006d76c
sub eax, 0x15
jne 0x1006d788
mov eax, dword [esp + 0x32]
push eax
jmp 0x1006d771
mov ecx, dword [esp + 0x32]
push ecx
call ebx
movzx esi, ax
test ebp, ebp
je 0x1006d7e5
cmp ebp, 1
je 0x1006d85b
mov cx, word [esp + 0x30]
inc ebp
cmp ebp, 2
jne 0x1006d740
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x538], ebp
mov eax, dword [edi + 0x158]
cmp eax, 0xffffffff
je 0x1006d7ad
push eax
push edi
call fcn.1005c470
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [edi + 0x158], eax
mov dword [edi + 0x274], 1
mov dword [edi + 0x544], 0x1c
mov ecx, dword [esp + 0x9b4]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10088aee
add esp, 0x9ac
ret
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, si
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
lea esi, [edi + 0x4d0]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.1007b8e0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1006d792
push ebx
call fcn.1004c730
mov edx, dword [esp + 0x14]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.10059590
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.1005c470
mov dword [esi + 0x68], 1
add esp, 0x18
mov dword [edi + 0x544], 0
jmp 0x1006d7cb
lea ecx, [esp + 0x5b4]
lea edx, [esp + 0xb0]
lea esp, [esp]
mov al, byte [edx]
test al, al
je 0x1006d885
cmp al, 0x2e
jne 0x1006d87f
mov byte [ecx], 0x2c
jmp 0x1006d881
mov byte [ecx], al
inc ecx
inc edx
jne 0x1006d870
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.1004e010
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [edi + 0x4d0]
push 0x100b0704
push eax
call fcn.1007b8e0
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x1006d792
push ebx
call fcn.1004c730
mov ecx, dword [esp + 0x14]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.10059590
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.1005c470
add esp, 0x18
mov dword [edi + 0x544], 0
jmp 0x1006d7cb