Function at 0x41e110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422ade
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x42b00c]
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.004051c0
mov edi, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x52c], edi
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x41e19e
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push str.NONE
call fcn.0040b990
add esp, 8
test al, al
je 0x41e7db
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.004016d0
or edi, 8
lea eax, [ebp - 0x550]
mov dword [ebp - 0x52c], edi
cmp esi, eax
je 0x41e247
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x41e21d
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x41e213
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
mov eax, edx
push ecx
push eax
call fcn.0041f6f2
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 0x41e281
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0x10
jb 0x41e281
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e277
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
push ecx
push edx
call fcn.0041f6f2
add esp, 8
push 0x424acc
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 0x41e3d2
push ecx
lea ecx, [ebp - 0x448]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x550]
push eax
call fcn.00405900
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x41e30b
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 0x41e34f
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 0x41e368
mov byte [ebp - 0x554], 0
lea ecx, [ebp - 0x460]
push dword [ebp - 0x554]
push esi
call fcn.00405570
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0x10
jb 0x41e3a6
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e39c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
push ecx
push edx
call fcn.0041f6f2
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 0x41e2e5
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 0x4245f8
call fcn.004051c0
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], 0x424714
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x518], 0x425104
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 0x41e7d5
test eax, eax
je 0x41e59b
cmp eax, 0x1000
jb 0x41e527
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41e7f8
push ecx
call fcn.0041f471
add esp, 4
test eax, eax
je 0x41e7cf
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41e532
push eax
call fcn.0041f471
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 0x41e5a1
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.0040b220
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
jne 0x41e6e1
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x41e7fd
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41e5ef
mov eax, dword [esi]
push ecx
push eax
push 1
push 0x424ab4
push ecx
push dword [ebp - 0x55c]
lea ecx, [ebp - 0x550]
call fcn.0040acb0
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.004050c0
add esp, 0xc
mov dword [ebp - 0x538], eax
cmp byte [ebp - 0x52d], 0
je 0x41e69f
mov ecx, dword [ebp - 0x53c]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x41e68f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
push ecx
push edi
call fcn.0041f6f2
mov eax, dword [ebp - 0x538]
add esp, 8
cmp eax, 0xffffffff
jne 0x41e6d3
push ecx
lea edx, [ebp - 0x478]
lea ecx, [ebp - 0x528]
call fcn.0040b220
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 0x41e5d2
jmp 0x41e6e1
push 4
push str.NONE
mov ecx, esi
call fcn.00415370
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.00415000
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 0x41e765
mov edx, dword [ebp - 0x478]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e75b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
push ecx
push edx
call fcn.0041f6f2
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 0x41e194
mov edx, dword [ebp - 0x460]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e7ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7cf
push ecx
push edx
call fcn.0041f6f2
mov edi, dword [ebp - 0x52c]
add esp, 8
jmp 0x41e194
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.0041f19c
mov esp, ebp
pop ebp
ret
call fcn.00401580
call fcn.00401620
int3