Function at 0x417430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420084
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov al, byte [0x42881a]
sub esp, 0x18
mov edi, dword [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x2c], edi
push 0x428850
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x15], al
call fcn.00404640
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x4215d8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00405070
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408310
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor esi, esi
add esp, 0x38
cmp dword [ebp + 8], esi
jle 0x417554
mov al, byte [0x42881a]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
mov byte [ebp - 0x15], al
push 0x428850
call fcn.00404640
mov dword [ebp - 4], 1
sub esp, 0x18
mov edi, dword [edi + esi*4]
mov ecx, esp
mov edx, edi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
lea eax, [edx + 1]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x3c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x417528
sub edx, dword [ebp - 0x3c]
push edx
push edi
call fcn.00405070
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408310
mov edi, dword [ebp - 0x2c]
inc esi
add esp, 0x30
cmp esi, dword [ebp + 8]
jl 0x4174e3
cmp dword [ebp + 8], 3
mov eax, dword [edi + 4]
mov dword [0x4289d4], eax
sete byte [0x42881b]
call fcn.00419b30
push 0
push 0
push 0
push 0x415920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov esi, eax
mov al, byte [0x42881a]
mov ecx, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x2c], esi
push 0x428850
mov byte [ebp - 0x15], al
call fcn.00404640
sub esp, 0x18
mov dword [ebp - 4], 2
mov ecx, esp
xorps xmm0, xmm0
push 0xc
movups xmmword [ecx], xmm0
push str.main_read_db
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00405070
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408310
add esp, 0x28
mov ecx, 0x42899c
call fcn.004122e0
add esp, 8
test al, al
jne 0x417610
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret
call fcn.0040d170
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
mov al, byte [0x42881a]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
mov byte [ebp - 0x15], al
push 0x428850
call fcn.00404640
sub esp, 0x18
mov dword [ebp - 4], 3
mov ecx, esp
xorps xmm0, xmm0
push 0x11
movups xmmword [ecx], xmm0
push str.main_start_circle
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00405070
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408310
add esp, 0x30
mov dword [ebp - 4], 4
call fcn.0040d1d0
cmp byte [0x42881b], 0
je 0x41780d
cmp dword [ebp - 0x1c], 0x71
mov esi, 0xbb8
je 0x4176cb
nop dword [eax]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x64
call edi
sub esi, 1
je 0x4177f5
mov eax, dword [ebp - 0x1c]
cmp eax, 0x6e
je 0x4177f5
cmp eax, 0x71
jne 0x4176a0
mov byte [ebp - 0x15], 0x93
nop
push 1
lea edx, [ebp - 0x15]
lea ecx, [ebp - 0x70]
call fcn.00402b30
add esp, 4
mov byte [ebp - 4], 5
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x41770a
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
mov ecx, eax
cmp esi, 0x10
jb 0x417702
mov ecx, dword [eax]
mov word [ecx + edx], 0x7c
jmp 0x417721
push 1
push 0x421ddc
mov byte [ebp - 0x3c], 0
mov ecx, eax
push dword [ebp - 0x3c]
push 1
call fcn.00405420
or dword [ebp - 0x38], 1
lea edx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x44], 0x10
mov ecx, dword [0x4289d4]
cmovae edx, dword [ebp - 0x58]
call fcn.0041c730
mov ecx, dword [ebp - 0x44]
mov esi, eax
cmp ecx, 0x10
jb 0x4177a4
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41779a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177e0
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x4177f0
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4177e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4177e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
cmp esi, 2
je 0x417801
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
jmp 0x417845
push 0x12c
call edi
jmp 0x4176d0
call fcn.00416460
mov byte [0x42881c], al
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x417a1d
cmp dword [ebp - 0x1c], 0x71
je 0x417845
nop dword [eax]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x64
call edi
cmp dword [ebp - 0x1c], 0x71
jne 0x417830
push 0x4288e0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x41785e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
call fcn.0041a580
push 0x4288e0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4175f4
push 0xbb8
call edi
jmp 0x417620