Function at 0x4149e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d0cc
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x42400c]
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 0x424924
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x15], 1
call fcn.00404570
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x41e5d8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00404fa0
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00407f30
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 0x414afd
nop
sub esp, 0x18
mov byte [ebp - 0x15], 1
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x424924
call fcn.00404570
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 0x414ad1
sub edx, dword [ebp - 0x3c]
push edx
push edi
call fcn.00404fa0
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00407f30
mov edi, dword [ebp - 0x2c]
inc esi
add esp, 0x30
cmp esi, dword [ebp + 8]
jl 0x414a90
cmp dword [ebp + 8], 3
mov eax, dword [edi + 4]
mov dword [0x4240d0], eax
sete byte [0x4248f2]
call fcn.00416f60
push 0
push 0
push 0
push 0x4131c0
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 0x424924
call fcn.00404570
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.00404fa0
mov cl, byte [ebp - 0x15]
mov dword [ebp - 4], 0xffffffff
call fcn.00407f30
add esp, 0x2c
mov ecx, 0x424098
call fcn.00410220
add esp, 4
test al, al
jne 0x414bb5
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.0041a4dc
mov esp, ebp
pop ebp
ret
call fcn.0040ca60
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 3
call fcn.0040cb80
cmp byte [0x4248f2], 0
je 0x414d50
cmp dword [ebp - 0x1c], 0x71
mov esi, 0xbb8
je 0x414c0f
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 0x414d38
mov eax, dword [ebp - 0x1c]
cmp eax, 0x6e
je 0x414d38
cmp eax, 0x71
jne 0x414be4
mov byte [ebp - 0x15], 0x93
push 1
lea edx, [ebp - 0x15]
lea ecx, [ebp - 0x70]
call fcn.00402a60
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 0x414c4d
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
mov ecx, eax
cmp esi, 0x10
jb 0x414c45
mov ecx, dword [eax]
mov word [ecx + edx], 0x7c
jmp 0x414c64
push 1
push 0x41ec90
mov byte [ebp - 0x3c], 0
mov ecx, eax
push dword [ebp - 0x3c]
push 1
call fcn.00405350
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 [0x4240d0]
cmovae edx, dword [ebp - 0x58]
call fcn.00419b90
mov ecx, dword [ebp - 0x44]
mov esi, eax
cmp ecx, 0x10
jb 0x414ce7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x414cdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414d23
push ecx
push edx
call fcn.0041aa32
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 0x414d33
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x414d29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x414d29
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041aa32
add esp, 8
cmp esi, 2
je 0x414d44
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
jmp 0x414d85
push 0x12c
call edi
jmp 0x414c13
call fcn.00413d00
mov byte [0x4248f3], al
test al, al
je 0x414f56
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x71
je 0x414d85
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 0x414d70
push 0x42499c
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x414d9e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
call fcn.004179b0
push 0x42499c
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 0x414b99
push 0xbb8
call edi
jmp 0x414bc0