Function at 0x404e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x40d040]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
call fcn.00404980
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x404640
push 0x40d828
mov dword [esp + 0x2c], ecx
call fcn.00407651
lea ecx, [esp + 0x28]
call fcn.00403b00
mov esi, dword [0x40d88c]
lea ecx, [esp + 8]
push 1
mov dword [esp + 0x20], 0x40d82c
mov dword [esp + 0x24], 0x403ac0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.00406a40
mov eax, dword [esp + 8]
mov ecx, 0x40d89c
mov dword [eax], 0x40d82c
mov dword [eax + 4], 0x403ac0
mov dword [eax + 8], esi
add eax, 0xc
mov dword [esp + 0xc], eax
call fcn.00405480
movq xmm0, qword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [esp + 0x10]
movq qword [0x40d89c], xmm0
mov dword [0x40d8a4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00405480
mov ecx, dword [0x40d8a0]
mov eax, 0x2aaaaaab
sub ecx, dword [0x40d89c]
imul ecx
mov eax, dword [0x40d884]
sub eax, dword [0x40d87c]
sar edx, 1
mov ecx, edx
sar eax, 2
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jbe 0x404f4b
cmp ecx, 0x3fffffff
ja 0x405103
lea eax, [esp + 0x28]
push eax
call fcn.00405b40
mov ecx, dword [0x40d8a0]
mov eax, 0x2aaaaaab
sub ecx, dword [0x40d89c]
xor esi, esi
imul ecx
xor edi, edi
mov dword [esp + 8], esi
sar edx, 1
mov eax, edx
mov dword [esp + 0xc], edi
shr eax, 0x1f
mov dword [esp + 0x10], esi
add eax, edx
je 0x404fc2
push eax
lea ecx, [esp + 0xc]
call fcn.00406a40
mov edx, dword [0x40d8a0]
mov ecx, dword [0x40d89c]
mov esi, dword [esp + 8]
mov edi, esi
cmp ecx, edx
je 0x404fbe
nop dword [eax]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
add ecx, 0xc
mov dword [edi + 8], eax
add edi, 0xc
cmp ecx, edx
jne 0x404fa0
mov esi, dword [esp + 8]
mov dword [esp + 0xc], edi
cmp esi, edi
je 0x405007
mov eax, dword [esi + 8]
mov ecx, eax
push dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.00407651
mov eax, dword [0x40d880]
cmp eax, dword [0x40d884]
je 0x404ff5
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
add dword [0x40d880], 4
jmp 0x405000
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00406ad0
add esi, 0xc
cmp esi, edi
jne 0x404fc6
lea ecx, [esp + 8]
call fcn.00405480
mov edi, dword [0x40d880]
mov esi, dword [0x40d87c]
cmp esi, edi
je 0x405036
mov eax, dword [esi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
call fcn.00403b00
add esi, 4
cmp esi, edi
jne 0x405020
push 0x14
call fcn.00408690
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x40d888]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
push 0x407040
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4050f3
cmp dword [esp + 0x30], 0
jne 0x405091
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jne 0x4050a7
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push ecx
push dword [esp + 0x34]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x4050c3
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
call fcn.004044d0
cmp dword [esp + 0x30], 0
je 0x4050de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00408682
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call fcn.004054f0
int3