Function at 0x416960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f34c
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x42600c]
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 edi, dword [ebp + 0xc]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], 0
push 0x42695c
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x15], 1
call fcn.004045d0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x4205d8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00405000
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408110
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 0x416a7d
nop
sub esp, 0x18
mov byte [ebp - 0x15], 1
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x42695c
call fcn.004045d0
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 0x416a51
sub edx, dword [ebp - 0x3c]
push edx
push edi
call fcn.00405000
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408110
mov edi, dword [ebp - 0x2c]
inc esi
add esp, 0x30
cmp esi, dword [ebp + 8]
jl 0x416a10
cmp dword [ebp + 8], 3
mov eax, dword [edi + 4]
mov dword [0x426108], eax
sete byte [0x42692a]
call fcn.00418ee0
push 0
push 0
push 0
push 0x414d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov byte [ebp - 0x15], 1
mov esi, eax
mov dword [ebp - 0x34], esp
mov ecx, esp
mov dword [ebp - 0x2c], esi
push 0x42695c
call fcn.004045d0
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.00405000
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00408110
add esp, 0x28
mov ecx, 0x4260d0
call fcn.00411ae0
add esp, 8
test al, al
jne 0x416b35
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.0041c42c
mov esp, ebp
pop ebp
ret
call fcn.0040cc30
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 3
call fcn.0040cc90
cmp byte [0x42692a], 0
je 0x416cd0
cmp dword [ebp - 0x1c], 0x71
mov esi, 0xbb8
je 0x416b8f
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 0x416cb8
mov eax, dword [ebp - 0x1c]
cmp eax, 0x6e
je 0x416cb8
cmp eax, 0x71
jne 0x416b64
mov byte [ebp - 0x15], 0x93
push 1
lea edx, [ebp - 0x15]
lea ecx, [ebp - 0x70]
call fcn.00402ac0
add esp, 4
mov byte [ebp - 4], 4
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x416bcd
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
mov ecx, eax
cmp esi, 0x10
jb 0x416bc5
mov ecx, dword [eax]
mov word [ecx + edx], 0x7c
jmp 0x416be4
push 1
push 0x420d1c
mov byte [ebp - 0x3c], 0
mov ecx, eax
push dword [ebp - 0x3c]
push 1
call fcn.004053b0
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 [0x426108]
cmovae edx, dword [ebp - 0x58]
call fcn.0041bae0
mov ecx, dword [ebp - 0x44]
mov esi, eax
cmp ecx, 0x10
jb 0x416c67
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416c5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416ca3
push ecx
push edx
call fcn.0041c982
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x416cb3
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416ca9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416ca9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c982
add esp, 8
cmp esi, 2
je 0x416cc4
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
jmp 0x416d05
push 0x12c
call edi
jmp 0x416b93
call fcn.004158b0
mov byte [0x42692b], al
test al, al
je 0x416ed6
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x71
je 0x416d05
nop
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 0x416cf0
push 0x4269d4
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x416d1e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
call fcn.00419930
push 0x4269d4
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 0x416b19
push 0xbb8
call edi
jmp 0x416b40