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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x10209f80]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
push edi
mov edi, dword [esp + 0x670]
push 0x2e
push 0
mov dword [esp + 0x2c], 0x1e
mov esi, dword [edi + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0xc4], 0
lea eax, [esi + 0x438]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xc5]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x574]
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x10131a29
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10131845
sub edx, dword [esp + 0x14]
cmp edx, 1
jbe 0x10131a29
mov al, byte [ecx]
cmp al, 0x5b
jne 0x1013188a
lea ebp, [ecx + 1]
mov esi, ebp
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebp, eax
mov eax, ecx
mov dword [esp + 0x38], ebp
sub eax, esi
mov ebp, ecx
neg ebp
sbb ebp, ebp
and ebp, eax
jmp 0x101318c4
cmp al, 0x3a
je 0x101318cc
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x2c]
mov ebp, esi
mov dword [esp + 0x38], eax
test ebp, ebp
je 0x10131925
lea ecx, [esp + 0x44]
sub ebp, eax
push ecx
push eax
push 0x17
call fcn.10128ab0
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 0x1013193e
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x2c], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x1013193e
push 0xa
push edx
inc eax
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.100f92f0
push 0x2d
push dword [esp + 0x40]
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x10131921
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.100f92f0
add esp, 0x10
movzx edx, ax
jmp 0x1013193e
mov edx, esi
jmp 0x1013193e
mov ebp, eax
lea ecx, [ebp + 1]
nop word [eax + eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10131930
sub ebp, 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 + 0x20], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x10131a13
cmp ebp, 0x32
jae 0x10131b4c
push ebp
push dword [esp + 0x3c]
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x270]
add esp, 0xc
mov byte [esp + ebp + 0xec], 0
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x50c]
add eax, 0x10
push eax
call fcn.10143ee0
add esp, 4
push eax
mov eax, dword [esi + 0x2c]
push dword [eax]
call fcn.100c4a00
add esp, 0x18
sub eax, 0
je 0x101319e8
sub eax, 1
je 0x10131b4c
sub eax, 1
jne 0x101319f1
lea esi, [esp + 0x264]
jmp 0x101319f3
lea esi, [esp + 0xec]
jmp 0x101319f3
xor esi, esi
mov eax, dword [esp + 0x2c]
movzx ebp, ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebp
movzx ebp, ax
mov dword [esp + 0x20], ebp
test esi, esi
jne 0x10131abb
jmp 0x10131a25
movzx ecx, ax
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10131a6f
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100f5820
push eax
push str.getsockname___failed:__s
jmp 0x10131b43
mov ax, word [esp + 0x3c]
cmp ax, 0x17
je 0x10131a83
lea ecx, [esp + 0x40]
movzx eax, ax
jmp 0x10131a8c
lea ecx, [esp + 0x44]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x268]
movzx eax, ax
push edx
push ecx
push eax
call fcn.101429c0
add esp, 0x10
test eax, eax
je 0x10131b4c
xor al, al
lea esi, [esp + 0x264]
mov byte [esp + 0x13], al
lea eax, [esp + 0x28]
push eax
push 0
push 0
push esi
push edi
call fcn.10118f30
add esp, 0x14
cmp eax, 1
jne 0x10131ae1
lea eax, [esp + 0x28]
push eax
push edi
call fcn.100ff360
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x10131f8b
mov ebp, dword [ebp]
test ebp, ebp
je 0x10131f8b
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x516]
push eax
push 0
push ebp
push edi
call fcn.101152e0
add esp, 0x14
test eax, eax
je 0x10131b96
call esi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x10131b00
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.100f5820
push eax
push str.socket_failure:__s
push edi
call fcn.1010ccb0
add esp, 0x18
mov esi, 0x1e
cmp dword [esp + 0x28], 0
je 0x10131b66
lea eax, [esp + 0x28]
push eax
push edi
call fcn.101194b0
add esp, 8
test esi, esi
je 0x10131fc3
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
test al, al
je 0x10131fb8
test esi, esi
je 0x10131f9f
movzx eax, al
mov eax, dword [eax*4 + 0x101f6780]
jmp 0x10131fa4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10131bad
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101f6780]
jmp 0x10131bb2
mov eax, 0x101ceae4
push eax
push str.__s__ftp_state_use_port____opened_socket
push edi
call fcn.1010cef0
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
movzx esi, ax
cmp ax, word [esp + 0x20]
ja 0x10131f78
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x14]
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10131cd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10131c8d
cmp eax, 0x2741
jne 0x10131c8d
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.100f5820
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push edi
call fcn.1010cd80
add esp, 0x1c
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10131a4b
mov eax, dword [esp + 0x30]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x10131bea
cmp eax, 0x2740
je 0x10131c99
cmp eax, 0xd
jne 0x10131ca8
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x10131bdf
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.100f5820
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.1010ccb0
add esp, 0x1c
jmp 0x10131b4c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10131a4b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10131d0e
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101f6780]
jmp 0x10131d13
mov eax, 0x101ceae4
movzx esi, si
push esi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push edi
call fcn.1010cef0
add esp, 0x10
push 1
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10131d4e
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10131b37
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10131d65
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101f6780]
jmp 0x10131d6a
mov eax, 0x101ceae4
push esi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push edi
call fcn.1010cef0
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.10118ee0
mov esi, dword [esp + 0x34]
add esp, 0x1c
cmp byte [esi + 0x2a0], 0
jne 0x10131da7
cmp byte [esi + 0x29b], 0
je 0x10131da7
mov byte [esi + 0x2a0], 1
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call fcn.10114f30
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10131f6f
mov dword [esp + 0x1c], 0xffffffff
cmp ebx, 2
je 0x10131e2a
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax]
cmp byte [esi + 0x2a0], 0
jne 0x10131ded
test ebx, ebx
je 0x10131e24
cmp ebx, 1
jne 0x10131df8
cmp cx, 2
jne 0x10131e24
movzx eax, cx
sub eax, 2
je 0x10131e05
sub eax, 0x15
jne 0x10131e24
push dword [esp + 0x3e]
call ebp
movzx esi, ax
test ebx, ebx
je 0x10131ef6
cmp ebx, 1
je 0x10131e5c
mov cx, word [esp + 0x3c]
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, 2
jne 0x10131de0
mov ebp, dword [esp + 0x34]
mov dword [ebp + 0xa0], ebx
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
cmp al, 0x1c
je 0x10131f68
test esi, esi
je 0x10131f4f
movzx eax, al
mov eax, dword [eax*4 + 0x101f6780]
jmp 0x10131f54
mov al, byte [esp + 0xbc]
lea edx, [esp + 0x120]
test al, al
je 0x10131e93
lea ecx, [esp + 0xbc]
mov ebp, edx
sub ecx, ebp
nop dword [eax]
cmp al, 0x2e
mov al, 0x2c
je 0x10131e89
mov al, byte [ecx + edx]
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x10131e80
movzx ecx, si
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.10112610
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x134]
push eax
push 0x101f66b5
push 0x101cec3c
push ebp
push edi
call fcn.1014b9c0
mov esi, eax
add esp, 0x28
mov dword [esp + 0x24], esi
test esi, esi
je 0x10131e2e
push esi
call fcn.100f5990
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.1010ccb0
add esp, 0x10
jmp 0x10131b51
mov ebp, dword [esp + 0x34]
movzx eax, si
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
push edi
call fcn.1014b9c0
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x24], esi
test esi, esi
je 0x10131e2e
push esi
call fcn.100f5990
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.1010ccb0
add esp, 0x10
jmp 0x10131b51
mov eax, 0x101ceae4
push str.PORT
push eax
push str.__s_______s_
push edi
call fcn.1010cef0
add esp, 0x10
mov byte [esi + 0x4e6], 0x1c
mov esi, dword [esp + 0x24]
jmp 0x10131b51
push str.bind___failed__we_ran_out_of_ports
push edi
call fcn.1010ccb0
add esp, 8
jmp 0x10131b4c
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.1010ccb0
add esp, 0xc
jmp 0x10131b4c
mov eax, 0x101ceae4
push str.STOP
push eax
push str.__s_______s_
push edi
call fcn.1010cef0
add esp, 0x10
mov byte [esi + 0x4e6], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x10131fda
push eax
push dword [esp + 0x1c]
push edi
call fcn.101152c0
add esp, 0xc
mov ecx, dword [esp + 0x668]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100f3936
add esp, 0x65c
ret