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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x101c8c40]
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 0x10105289
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x101050a5
sub edx, dword [esp + 0x14]
cmp edx, 1
jbe 0x10105289
mov al, byte [ecx]
cmp al, 0x5b
jne 0x101050ea
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 0x10105124
cmp al, 0x3a
je 0x1010512c
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 0x10105185
lea ecx, [esp + 0x44]
sub ebp, eax
push ecx
push eax
push 0x17
call fcn.100fc160
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 0x1010519e
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 0x1010519e
push 0xa
push edx
inc eax
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.100e2740
push 0x2d
push dword [esp + 0x40]
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x10105181
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.100e2740
add esp, 0x10
movzx edx, ax
jmp 0x1010519e
mov edx, esi
jmp 0x1010519e
mov ebp, eax
lea ecx, [ebp + 1]
nop word [eax + eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10105190
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 0x10105273
cmp ebp, 0x32
jae 0x101053ac
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.10117370
add esp, 4
push eax
mov eax, dword [esi + 0x2c]
push dword [eax]
call fcn.10012080
add esp, 0x18
sub eax, 0
je 0x10105248
sub eax, 1
je 0x101053ac
sub eax, 1
jne 0x10105251
lea esi, [esp + 0x264]
jmp 0x10105253
lea esi, [esp + 0xec]
jmp 0x10105253
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 0x1010531b
jmp 0x10105285
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 0x101052cf
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100f30c0
push eax
push str.getsockname___failed:__s
jmp 0x101053a3
mov ax, word [esp + 0x3c]
cmp ax, 0x17
je 0x101052e3
lea ecx, [esp + 0x40]
movzx eax, ax
jmp 0x101052ec
lea ecx, [esp + 0x44]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x268]
movzx eax, ax
push edx
push ecx
push eax
call fcn.10115e50
add esp, 0x10
test eax, eax
je 0x101053ac
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.100e9dc0
add esp, 0x14
cmp eax, 1
jne 0x10105341
lea eax, [esp + 0x28]
push eax
push edi
call fcn.100d22b0
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x101057eb
mov ebp, dword [ebp]
test ebp, ebp
je 0x101057eb
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.100e5e90
add esp, 0x14
test eax, eax
je 0x101053f6
call esi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x10105360
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.100f30c0
push eax
push str.socket_failure:__s
push edi
call fcn.100def90
add esp, 0x18
mov esi, 0x1e
cmp dword [esp + 0x28], 0
je 0x101053c6
lea eax, [esp + 0x28]
push eax
push edi
call fcn.100ea340
add esp, 8
test esi, esi
je 0x10105823
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
test al, al
je 0x10105818
test esi, esi
je 0x101057ff
movzx eax, al
mov eax, dword [eax*4 + 0x101452a0]
jmp 0x10105804
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1010540d
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101452a0]
jmp 0x10105412
mov eax, 0x10145434
push eax
push str.__s__ftp_state_use_port____opened_socket
push edi
call fcn.100df1d0
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 0x101057d8
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 0x10105533
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x101054ed
cmp eax, 0x2741
jne 0x101054ed
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.100f30c0
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push edi
call fcn.100df060
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 0x101052ab
mov eax, dword [esp + 0x30]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x1010544a
cmp eax, 0x2740
je 0x101054f9
cmp eax, 0xd
jne 0x10105508
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x1010543f
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.100f30c0
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.100def90
add esp, 0x1c
jmp 0x101053ac
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 0x101052ab
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1010556e
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101452a0]
jmp 0x10105573
mov eax, 0x10145434
movzx esi, si
push esi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push edi
call fcn.100df1d0
add esp, 0x10
push 1
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x101055ae
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10105397
mov eax, dword [edi + 0x18]
test eax, eax
je 0x101055c5
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x101452a0]
jmp 0x101055ca
mov eax, 0x10145434
push esi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push edi
call fcn.100df1d0
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.100e9d70
mov esi, dword [esp + 0x34]
add esp, 0x1c
cmp byte [esi + 0x2a0], 0
jne 0x10105607
cmp byte [esi + 0x29b], 0
je 0x10105607
mov byte [esi + 0x2a0], 1
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call fcn.100e5ae0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x101057cf
mov dword [esp + 0x1c], 0xffffffff
cmp ebx, 2
je 0x1010568a
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax]
cmp byte [esi + 0x2a0], 0
jne 0x1010564d
test ebx, ebx
je 0x10105684
cmp ebx, 1
jne 0x10105658
cmp cx, 2
jne 0x10105684
movzx eax, cx
sub eax, 2
je 0x10105665
sub eax, 0x15
jne 0x10105684
push dword [esp + 0x3e]
call ebp
movzx esi, ax
test ebx, ebx
je 0x10105756
cmp ebx, 1
je 0x101056bc
mov cx, word [esp + 0x3c]
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, 2
jne 0x10105640
mov ebp, dword [esp + 0x34]
mov dword [ebp + 0xa0], ebx
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
cmp al, 0x1c
je 0x101057c8
test esi, esi
je 0x101057af
movzx eax, al
mov eax, dword [eax*4 + 0x101452a0]
jmp 0x101057b4
mov al, byte [esp + 0xbc]
lea edx, [esp + 0x120]
test al, al
je 0x101056f3
lea ecx, [esp + 0xbc]
mov ebp, edx
sub ecx, ebp
nop dword [eax]
cmp al, 0x2e
mov al, 0x2c
je 0x101056e9
mov al, byte [ecx + edx]
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x101056e0
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.100f4940
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x134]
push eax
push 0x101451d1
push 0x10144a44
push ebp
push edi
call fcn.1011ee50
mov esi, eax
add esp, 0x28
mov dword [esp + 0x24], esi
test esi, esi
je 0x1010568e
push esi
call fcn.100f3230
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.100def90
add esp, 0x10
jmp 0x101053b1
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.1011ee50
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x24], esi
test esi, esi
je 0x1010568e
push esi
call fcn.100f3230
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.100def90
add esp, 0x10
jmp 0x101053b1
mov eax, 0x10145434
push str.PORT
push eax
push str.__s_______s_
push edi
call fcn.100df1d0
add esp, 0x10
mov byte [esi + 0x4e6], 0x1c
mov esi, dword [esp + 0x24]
jmp 0x101053b1
push str.bind___failed__we_ran_out_of_ports
push edi
call fcn.100def90
add esp, 8
jmp 0x101053ac
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.100def90
add esp, 0xc
jmp 0x101053ac
mov eax, 0x10145434
push str.STOP
push eax
push str.__s_______s_
push edi
call fcn.100df1d0
add esp, 0x10
mov byte [esi + 0x4e6], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x1010583a
push eax
push dword [esp + 0x1c]
push edi
call fcn.100e5e70
add esp, 0xc
mov ecx, dword [esp + 0x668]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10122cc7
add esp, 0x65c
ret