Function at 0x408650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42893f
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004085e0
test al, al
je 0x40868e
mov eax, 1
jmp 0x40894e
call fcn.00407ea0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
xor esi, esi
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00406700
inc esi
cmp esi, 0xf
jne 0x4086c0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x24]
je 0x4087fe
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
push edi
lea ecx, [ebp - 0x74]
call fcn.00409380
lea esi, [edi + 0x30]
mov byte [ebp - 4], 2
lea eax, [esi - 0x18]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00409380
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00409380
push 0x4c
mov byte [ebp - 4], 4
call fcn.00426e1c
mov esi, eax
add esp, 4
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
mov dword [ebp - 0x2c], esi
call fcn.00409380
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
lea ecx, [esi + 0x18]
push eax
call fcn.00409380
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x30]
push eax
call fcn.00409380
mov dword [esi + 0x48], fcn.00406b90
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 8
push eax
push 0
push esi
push 0x40f390
push 0
push 0
call ebx
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x7c], edx
test edx, edx
je 0x40891b
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
je 0x4087c2
mov eax, dword [ebp - 0x78]
xorps xmm0, xmm0
movlpd qword [ebp - 0x7c], xmm0
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebp - 0x18], 8
jmp 0x4087cf
lea eax, [ebp - 0x7c]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040d060
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
jne 0x408915
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00406ab0
add edi, 0x48
cmp edi, dword [ebp - 0x24]
jne 0x408702
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x408852
mov edi, dword [sym.imp.MSVCP140.dll__Thrd_id]
nop dword [eax + eax]
cmp dword [esi + 4], 0
je 0x40893a
call edi
cmp dword [esi + 4], eax
je 0x408932
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
jne 0x40892a
mov dword [esi], eax
mov dword [esi + 4], eax
add esi, 8
cmp esi, ebx
jne 0x408810
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4088b9
mov eax, esi
cmp eax, ebx
je 0x408871
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x408915
add eax, 8
cmp eax, ebx
jne 0x408860
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x408897
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40890f
push ecx
push esi
call fcn.004270a2
mov edi, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edi, edi
je 0x40894c
mov esi, dword [ebp - 0x24]
cmp edi, esi
je 0x4088d9
mov ecx, edi
call fcn.00406ab0
add edi, 0x48
cmp edi, esi
jne 0x4088c8
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov eax, 0x38e38e39
sub ecx, edi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x408942
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408942
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 6
mov dword [ebp - 0x78], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push edi
call fcn.004270a2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c11
mov esp, ebp
pop ebp
ret