Function at 0x408cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410ca3
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x534], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x530], 0
push 4
movups xmmword [esi], xmm0
push str.NONE
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00403260
mov dword [ebp - 4], 0
mov dword [ebp - 0x530], 1
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 0x10
jb 0x408d7f
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push str.NONE
call fcn.00408ad0
add esp, 8
test al, al
jne 0x408dcb
cmp dword [0x417864], 0x10
mov eax, 0x417850
mov ecx, esi
cmovae eax, dword [0x417850]
cmp edi, 0x10
jb 0x408db1
mov ecx, dword [esi]
push dword [0x417860]
mov edx, dword [esi + 0x10]
push eax
call fcn.00408ad0
add esp, 8
test al, al
je 0x40925c
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x2328
idiv ecx
lea ecx, [ebp - 0x54c]
add edx, 0x9c40
call fcn.004014d0
or dword [ebp - 0x530], 4
lea eax, [ebp - 0x54c]
cmp esi, eax
je 0x408e58
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x408e2e
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x408e24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
mov eax, edx
push ecx
push eax
call fcn.0040f66d
add esp, 8
movups xmm0, xmmword [ebp - 0x54c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x53c]
movq qword [esi + 0x10], xmm0
jmp 0x408e92
mov ecx, dword [ebp - 0x538]
cmp ecx, 0x10
jb 0x408e92
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408e88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
push ecx
push edx
call fcn.0040f66d
add esp, 8
push 0x412710
push str.netstat__a__o
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
xorps xmm0, xmm0
mov dword [ebp - 0x468], 0
mov edi, eax
mov dword [ebp - 0x464], 0xf
movups xmmword [ebp - 0x478], xmm0
mov dword [ebp - 0x534], edi
mov byte [ebp - 0x478], 0
push edi
push 0x438
lea eax, [ebp - 0x448]
mov dword [ebp - 4], 1
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x18
test eax, eax
je 0x408fe3
push ecx
lea ecx, [ebp - 0x448]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x54c]
push eax
call fcn.00403810
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x408f1c
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x464]
mov eax, edi
mov edx, dword [ebp - 0x468]
sub eax, edx
push esi
push ecx
cmp esi, eax
ja 0x408f60
lea eax, [edx + esi]
cmp edi, 0x10
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x478]
cmovae eax, dword [ebp - 0x478]
lea edi, [eax + edx]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x408f79
mov byte [ebp - 0x550], 0
lea ecx, [ebp - 0x478]
push dword [ebp - 0x550]
push esi
call fcn.00403480
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x538]
cmp ecx, 0x10
jb 0x408fb7
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408fad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov edi, dword [ebp - 0x534]
lea eax, [ebp - 0x448]
push edi
push 0x438
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x408ef6
mov esi, dword [ebp - 0x554]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
mov dword [ebp - 0x450], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0
lea ecx, [ebp - 0x460]
movups xmmword [ebp - 0x460], xmm0
push 0
push 0x412570
call fcn.00403260
push 0xb0
lea eax, [ebp - 0x528]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x478]
lea ecx, [ebp - 0x528]
push eax
call fcn.0040a9e0
push ecx
lea edx, [ebp - 0x460]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x528]
call fcn.00408570
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x409176
mov ecx, dword [esi + 0x10]
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x40929e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40908f
mov eax, dword [esi]
push ecx
push eax
push 1
push 0x412728
push ecx
push dword [ebp - 0x558]
lea ecx, [ebp - 0x54c]
call fcn.00408090
or dword [ebp - 0x530], 2
lea eax, [ebp - 0x54c]
cmp dword [ebp - 0x538], 0x10
lea ecx, [ebp - 0x460]
mov edi, dword [ebp - 0x54c]
push dword [ebp - 0x53c]
mov edx, dword [ebp - 0x450]
cmovae eax, edi
setae byte [ebp - 0x529]
cmp dword [ebp - 0x44c], 0x10
push eax
cmovae ecx, dword [ebp - 0x460]
push ecx
call fcn.00403170
add esp, 0xc
mov dword [ebp - 0x534], eax
cmp byte [ebp - 0x529], 0
je 0x40913c
mov ecx, dword [ebp - 0x538]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x40912c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
push ecx
push edi
call fcn.0040f66d
mov eax, dword [ebp - 0x534]
add esp, 8
cmp eax, 0xffffffff
jne 0x409168
push ecx
lea edx, [ebp - 0x460]
lea ecx, [ebp - 0x528]
call fcn.00408570
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x409072
jmp 0x409176
push 4
push str.NONE
mov ecx, esi
call fcn.0040abd0
mov eax, dword [ebp - 0x528]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x528]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x52c], eax
lea ecx, [ebp - 0x510]
call fcn.0040a930
lea ecx, [ebp - 0x508]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x4c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44c]
cmp ecx, 0x10
jb 0x4091fe
mov edx, dword [ebp - 0x460]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4091f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0xf
mov byte [ebp - 0x460], 0
cmp ecx, 0x10
jb 0x408d73
mov edx, dword [ebp - 0x478]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40924d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409298
push ecx
push edx
call fcn.0040f66d
add esp, 8
jmp 0x408d73
cmp esi, 0x417850
je 0x40927b
mov eax, esi
cmp edi, 0x10
jb 0x40926d
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, 0x417850
push eax
call fcn.0040abd0
mov eax, esi
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.0040f11c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401420
int3