Function at 0x4037b0
Capabilities:
Get number of processors
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4661cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
push ebp
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov eax, dword [edi + 0x1c0]
mov dword [esp + 0x10], ebp
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.00401d30
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov ebx, eax
push ecx
mov ecx, dword [edi + 0x1bc]
push edx
lea eax, [esp + 0xc8]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtablefor__std::basic_istream_char__struct_std::char_traits_char__]
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtablefor__std::basic_ostream_char__struct_std::char_traits_char__]
lea ecx, [esp + 0x88]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x10], 1
mov dword [esp + 0x88], ecx
lea edx, [esp + 0x3c]
push ebp
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x4d0], ebp
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x4cc], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov eax, dword [esp + 0x30]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], edx
cmp esi, ebp
mov dword [esp + 0x4c8], 2
jne 0x403a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4038fd
lea ecx, [esp + 0x88]
mov dword [esp + 0x4c8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ax, 0x43c
jmp 0x403c49
mov ecx, dword [esp + 0x4d8]
mov edx, dword [esp + 0x2c]
and ecx, 0xffff
add ecx, 0x64
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebp
je 0x403a84
cmp eax, 0x102
je 0x4039a4
mov al, byte [esp + 0x17]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ebp
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unknown_return_from_WaitForSingleObject
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unknown_return_from_WaitForSingleObject
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [esp + 0x4e4]
call fcn.00404530
lea ecx, [esp + 0x88]
mov dword [esp + 0x4c8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ax, 0x40a
jmp 0x403c49
mov edi, dword [edi + 0x1bc]
cmp edi, 0xffffffff
je 0x4039f2
push str.Kernel32.dll
mov byte [esp + 0x4cc], 3
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x10], esi
je 0x4039df
push str.CancelIo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x4039df
push edi
call eax
cmp esi, ebp
mov byte [esp + 0x4c8], 2
je 0x4039f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [esp + 0x30]
lea edx, [esp + 0x38]
neg esi
sbb esi, esi
push 0x487860
and esi, edx
call fcn.00401d30
sub eax, ebx
push eax
push str.Rx_Timeout_out_after__approx_
push esi
mov esi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
call esi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push eax
call esi
sub esp, 8
lea ecx, [esp + 0x40]
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ecx, dword [esp + 0x4e4]
call fcn.00404530
lea ecx, [esp + 0x88]
mov dword [esp + 0x4c8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ax, 0x4a7
jmp 0x403c49
lea esi, [esp + 0x30]
lea edx, [esp + 0x38]
neg esi
sbb esi, esi
push 0x487860
and esi, edx
call fcn.00401d30
sub eax, ebx
push eax
push str.Rx_response_after__approx_
push esi
mov esi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
call esi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push eax
call esi
sub esp, 8
lea ecx, [esp + 0x40]
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ebx, dword [esp + 0x4e4]
mov ecx, ebx
call fcn.004045c0
mov eax, dword [edi + 0x1bc]
lea ecx, [esp + 0x18]
push ebp
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, dword [esp + 0x18]
cmp edi, ebp
jne 0x403b74
mov cl, byte [esp + 0x17]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ebp
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Packet_Empty
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Packet_Empty
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, ebx
call fcn.00404530
lea ecx, [esp + 0x88]
mov dword [esp + 0x4c8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ax, 0x4a9
jmp 0x403c49
mov esi, dword [esp + 0x4d0]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x403b8e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 4], ebp
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], edi
mov dword [esi + 4], eax
mov edi, eax
mov eax, ecx
lea esi, [esp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x30], ecx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ebx, 4
lea edx, [esp + 0x3c]
mov dword [esp + 0x4c8], ebx
mov dword [esp + 0xbc], edx
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c8], 5
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c8], bl
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
xor ax, ax
mov ecx, dword [esp + 0x4c0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4bc
ret 0xc