Function at 0x419450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d6de
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x42400c]
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 - 0x558], esi
mov dword [ebp - 0x538], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x52c], 0
push 4
movups xmmword [esi], xmm0
push str.NONE
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00404fa0
mov edi, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x52c], edi
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4194de
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push str.NONE
call fcn.0040b1b0
add esp, 8
test al, al
je 0x419b1b
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x2328
idiv ecx
lea ecx, [ebp - 0x550]
add edx, 0x9c40
call fcn.004014b0
or edi, 8
lea eax, [ebp - 0x550]
mov dword [ebp - 0x52c], edi
cmp esi, eax
je 0x419587
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x41955d
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x419553
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
mov eax, edx
push ecx
push eax
call fcn.0041aa32
add esp, 8
movups xmm0, xmmword [ebp - 0x550]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x540]
movq qword [esi + 0x10], xmm0
jmp 0x4195c1
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0x10
jb 0x4195c1
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4195b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
push ecx
push edx
call fcn.0041aa32
add esp, 8
push 0x41ea2c
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 - 0x450], 0
mov edi, eax
mov dword [ebp - 0x44c], 0xf
movups xmmword [ebp - 0x460], xmm0
mov dword [ebp - 0x534], edi
mov byte [ebp - 0x460], 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 0x419712
push ecx
lea ecx, [ebp - 0x448]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x550]
push eax
call fcn.004056e0
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x41964b
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x44c]
mov eax, edi
mov edx, dword [ebp - 0x450]
sub eax, edx
push esi
push ecx
cmp esi, eax
ja 0x41968f
lea eax, [edx + esi]
cmp edi, 0x10
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
lea edi, [eax + edx]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4196a8
mov byte [ebp - 0x554], 0
lea ecx, [ebp - 0x460]
push dword [ebp - 0x554]
push esi
call fcn.00405350
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0x10
jb 0x4196e6
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4196dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
push ecx
push edx
call fcn.0041aa32
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 0x419625
mov esi, dword [ebp - 0x558]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
mov dword [ebp - 0x468], 0
xorps xmm0, xmm0
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x478]
movups xmmword [ebp - 0x478], xmm0
push 0
push 0x41e5d8
call fcn.00404fa0
push 0xb0
lea eax, [ebp - 0x528]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x528], 0x41e6f4
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x518], 0x41ef5c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x510]
mov edi, dword [ebp - 0x52c]
lea ecx, [ebp - 0x528]
push 0
or edi, 4
push eax
mov dword [ebp - 0x52c], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 5
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 eax, [ebp - 0x510]
mov ecx, eax
mov dword [ebp - 0x55c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x460]
cmp dword [ebp - 0x44c], 0x10
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmovae eax, dword [ebp - 0x460]
xor ecx, ecx
mov dword [ebp - 0x538], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x534], eax
cmp eax, 0x7fffffff
ja 0x419b15
test eax, eax
je 0x4198db
cmp eax, 0x1000
jb 0x419867
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x419b38
push ecx
call fcn.0041a7b1
add esp, 4
test eax, eax
je 0x419b0f
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x419872
push eax
call fcn.0041a7b1
add esp, 4
mov edi, eax
push dword [ebp - 0x534]
push dword [ebp - 0x538]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x534]
add esp, 0xc
lea eax, [edi + ecx]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp - 0x504]
mov dword [eax], edi
mov eax, dword [ebp - 0x4f4]
mov dword [eax], edi
mov eax, dword [ebp - 0x4e4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x4d8]
sub ecx, edi
mov dword [eax], edi
mov eax, dword [ebp - 0x4f0]
mov dword [eax], edi
mov eax, dword [ebp - 0x4e0]
mov edi, dword [ebp - 0x52c]
mov dword [eax], ecx
mov ecx, 1
jmp 0x4198e1
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 0x4d4], ecx
push ecx
lea edx, [ebp - 0x478]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x528]
call fcn.0040aa40
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
jne 0x419a21
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x419b3d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41992f
mov eax, dword [esi]
push ecx
push eax
push 1
push 0x41ea14
push ecx
push dword [ebp - 0x55c]
lea ecx, [ebp - 0x550]
call fcn.0040a4d0
push dword [ebp - 0x540]
mov edx, dword [ebp - 0x468]
lea eax, [ebp - 0x550]
or edi, 2
lea ecx, [ebp - 0x478]
cmp dword [ebp - 0x53c], 0x10
mov dword [ebp - 0x52c], edi
mov edi, dword [ebp - 0x550]
setae byte [ebp - 0x52d]
cmovae eax, edi
cmp dword [ebp - 0x464], 0x10
push eax
cmovae ecx, dword [ebp - 0x478]
push 0
call fcn.00404ea0
add esp, 0xc
mov dword [ebp - 0x538], eax
cmp byte [ebp - 0x52d], 0
je 0x4199df
mov ecx, dword [ebp - 0x53c]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x4199cf
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
push ecx
push edi
call fcn.0041aa32
mov eax, dword [ebp - 0x538]
add esp, 8
cmp eax, 0xffffffff
jne 0x419a13
push ecx
lea edx, [ebp - 0x478]
lea ecx, [ebp - 0x528]
call fcn.0040aa40
mov edi, dword [ebp - 0x52c]
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
je 0x419912
jmp 0x419a21
push 4
push str.NONE
mov ecx, esi
call fcn.00411150
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.00410ff0
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 - 0x464]
cmp ecx, 0x10
jb 0x419aa5
mov edx, dword [ebp - 0x478]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x419a9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
push ecx
push edx
call fcn.0041aa32
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x52c]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
cmp ecx, 0x10
jb 0x4194d4
mov edx, dword [ebp - 0x460]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x419afa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b0f
push ecx
push edx
call fcn.0041aa32
mov edi, dword [ebp - 0x52c]
add esp, 8
jmp 0x4194d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
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.0041a4dc
mov esp, ebp
pop ebp
ret
call fcn.00401360
call fcn.00401400
int3