Function at 0x4045b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
lea ebp, [esp - 0x28]
sub esp, 0x28
push 0xffffffffffffffff
push 0x45fd1e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4780bc]
xor eax, ebp
mov dword [ebp + 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x30]
lea ecx, [ebp - 0x54]
mov dword [ebp], 0
mov dword [ebp + 8], ebx
mov dword [ebp - 0xbc], 0x462b9c
mov dword [ebp - 0xac], 0x462ba4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp], 2
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 eax, dword [ebp - 0xbc]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xa4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp byte [edi + 0x30], 0
addsd xmm0, qword [eax*8 + 0x462c30]
cvtpd2ps xmm0, xmm0
movss dword [ebp + 8], xmm0
je 0x404714
lea eax, [ebp - 0xac]
push 0x462b50
push eax
call fcn.004023d0
mov esi, eax
add esp, 8
mov eax, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x462c30]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [ebp + 8]
mulss xmm0, dword [0x462c28]
call fcn.0045ec80
mov ecx, 0x64
cmp eax, ecx
push 0x462bac
cmova eax, ecx
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
push eax
call fcn.004023d0
add esp, 8
cmp byte [edi + 0x2c], 0
je 0x40475f
lea eax, [ebp - 0xac]
push 0x462bb0
push eax
call fcn.004023d0
add esp, 8
lea eax, [ebp - 0xac]
cmp byte [edi + 0x24], 0
je 0x404751
push dword [edi + 0xec]
push dword [edi + 0xe8]
push eax
call fcn.00406190
add esp, 0xc
jmp 0x40475f
push str.00:00s
push eax
call fcn.004023d0
add esp, 8
cmp byte [edi + 0x28], 0
mov cl, byte [edi + 0x2c]
je 0x404864
test cl, cl
mov edx, 0x462bbc
mov eax, 0x462bb0
cmovne eax, edx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004023d0
add esp, 8
cmp byte [edi + 0x24], 0
je 0x40484e
mov esi, dword [edi]
test esi, esi
je 0x4047f8
mov edx, dword [edi + 0xec]
mov ecx, dword [edi + 0xe8]
call fcn.0045eda0
xorps xmm1, xmm1
sub esp, 8
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [ebp + 8]
cvtsi2sd xmm0, esi
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x462c30]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 8], xmm1
fld dword [ebp + 8]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp + 8]
movss xmm0, dword [ebp + 8]
call fcn.0045ec80
jmp 0x404806
xorps xmm0, xmm0
movlpd qword [ebp + 4], xmm0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov esi, dword [edi + 0xec]
mov ecx, dword [edi + 0xe8]
cmp esi, edx
jg 0x404833
jl 0x40481c
cmp ecx, eax
jae 0x404833
sub eax, ecx
sbb edx, esi
push edx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00406190
add esp, 0xc
jmp 0x404868
sub ecx, eax
mov eax, ecx
sbb esi, edx
mov edx, esi
push edx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00406190
add esp, 0xc
jmp 0x404868
lea eax, [ebp - 0xac]
push str.00:00s
push eax
call fcn.004023d0
add esp, 8
jmp 0x404868
test cl, cl
je 0x40487c
lea eax, [ebp - 0xac]
push 0x462bc0
push eax
call fcn.004023d0
add esp, 8
lea eax, [ebp - 0xac]
push 0x462b50
push eax
call fcn.004023d0
mov ecx, dword [edi + 0xc4]
add edi, 0xb4
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4048a4
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.00402640
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0xbc]
push eax
call fcn.00405a30
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.00403ad0
add esp, 4
mov esi, eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00402850
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x18], esi
cmp ecx, 0x10
jb 0x404914
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40490a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40490a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
mov eax, dword [ebp - 0xbc]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0xc0], ecx
lea ecx, [ebp - 0xa4]
call fcn.00402c40
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x24]
xor ecx, ebp
call fcn.0045e42e
lea esp, [ebp + 0x28]
pop ebp
ret 4