Function at 0x401550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407f1b
mov eax, dword fs:[0]
push eax
mov eax, 0x2758
call fcn.00407e70
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4092bc
push str.netstat__an
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
xorps xmm0, xmm0
mov dword [ebp - 0x2748], eax
movups xmmword [ebp - 0x2738], xmm0
mov dword [ebp - 0x2728], 0
mov dword [ebp - 0x2724], 0xf
mov byte [ebp - 0x2738], 0
push eax
push 0x2710
lea eax, [ebp - 0x2720]
mov dword [ebp - 4], 0
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x18
mov esi, eax
mov dword [ebp - 0x2740], esi
test esi, esi
je 0x40180e
lea eax, [ebp - 0x2720]
mov dword [ebp - 0x2754], 0
add eax, esi
mov dword [ebp - 0x2750], 0
lea ecx, [ebp - 0x2720]
xorps xmm0, xmm0
mov edx, 0x16
movups xmmword [ebp - 0x2764], xmm0
cmp ecx, eax
jne 0x401645
xor esi, esi
mov byte [ebp - 0x2764], 0
mov edi, 0xf
mov dword [ebp - 0x2740], esi
mov dword [ebp - 0x2754], esi
mov dword [ebp - 0x2750], edi
jmp 0x401732
cmp esi, 0x7fffffff
ja 0x401960
mov dword [ebp - 0x2750], 0xf
cmp esi, 0xf
ja 0x401699
push esi
lea eax, [ebp - 0x2720]
mov dword [ebp - 0x2754], esi
push eax
lea eax, [ebp - 0x2764]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp + esi - 0x2764], 0
mov esi, dword [ebp - 0x2754]
mov edi, dword [ebp - 0x2750]
mov dword [ebp - 0x2740], esi
jmp 0x40172f
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4016b5
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
jmp 0x4016d0
cmp edi, 0x16
cmovb edi, edx
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x4016ee
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40195b
push ecx
call fcn.00406fa7
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40190a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4016ff
test eax, eax
je 0x4016fd
push eax
call fcn.00406fa7
add esp, 4
jmp 0x4016ff
xor eax, eax
push esi
lea ecx, [ebp - 0x2720]
mov dword [ebp - 0x2744], eax
push ecx
push eax
mov dword [ebp - 0x2764], eax
mov dword [ebp - 0x2754], esi
mov dword [ebp - 0x2750], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x2744]
mov byte [eax + esi], 0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2764]
mov eax, dword [ebp - 0x2724]
cmp edi, 0xf
mov edx, dword [ebp - 0x2728]
cmova ecx, dword [ebp - 0x2764]
sub eax, edx
cmp esi, eax
ja 0x401793
cmp dword [ebp - 0x2724], 0xf
lea eax, [edx + esi]
push dword [ebp - 0x2740]
lea esi, [ebp - 0x2738]
mov dword [ebp - 0x2728], eax
cmova esi, dword [ebp - 0x2738]
add esi, edx
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2740]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4017b4
push esi
push ecx
mov byte [ebp - 0x274c], 0
lea ecx, [ebp - 0x2738]
push dword [ebp - 0x274c]
push esi
call fcn.004021c0
mov edi, dword [ebp - 0x2750]
mov byte [ebp - 4], 0
cmp edi, 0xf
jbe 0x4017ec
mov ecx, dword [ebp - 0x2764]
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x4017e2
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40190a
push edi
push ecx
call fcn.004070ec
add esp, 8
push dword [ebp - 0x2748]
lea eax, [ebp - 0x2720]
push 0x2710
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x4015db
cmp dword [ebp - 0x2724], 0xf
lea ecx, [ebp - 0x2738]
mov eax, dword [ebp - 0x2728]
cmova ecx, dword [ebp - 0x2738]
mov dword [ebp - 0x2744], ecx
cmp eax, 5
jb 0x4018c8
add eax, 0xfffffffc
add eax, ecx
mov dword [ebp - 0x274c], eax
sub eax, ecx
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4018c8
nop word [eax + eax]
mov edx, ecx
mov esi, str.:2042
mov edi, 1
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40187d
add edx, 4
mov edi, 0xfffffffd
add esi, 4
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4018a4
cmp edi, 0xfffffffd
je 0x4018a0
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4018a4
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4018a4
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x4018a4
xor eax, eax
jmp 0x4018a9
sbb eax, eax
or eax, 1
test eax, eax
je 0x401910
mov eax, dword [ebp - 0x274c]
inc ecx
sub eax, ecx
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x401860
push dword [ebp - 0x2748]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov byte [ebp - 0x2739], 0
mov ecx, dword [ebp - 0x2724]
add esp, 4
cmp ecx, 0xf
jbe 0x40193a
mov edx, dword [ebp - 0x2738]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401930
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401930
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, dword [ebp - 0x2744]
cmp ecx, 0xffffffff
je 0x4018c8
push dword [ebp - 0x2748]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov byte [ebp - 0x2739], 1
jmp 0x4018db
push ecx
push edx
call fcn.004070ec
add esp, 8
mov al, byte [ebp - 0x2739]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406f99
mov esp, ebp
pop ebp
ret
call fcn.004010d0
call fcn.00401170
int3