Function at 0x407ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4288b4
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x434014]
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 edx, 0x10
lea ecx, [ebp - 0x3b0]
call fcn.00403f90
lea edx, [ebp - 0x3b0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x398]
call fcn.00404270
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x398]
mov ecx, esp
push eax
call fcn.00409380
lea ecx, [ebp - 0x380]
call fcn.00405e20
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.00409380
call fcn.00405bf0
add esp, 0x18
mov dword [ebp - 0x3ec], eax
mov edx, 0x10
lea ecx, [ebp - 0x368]
call fcn.00403cb0
push 0x402f90
push 0x402f80
push 0x64
push 8
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 3
push eax
call fcn.004272d1
mov byte [ebp - 4], 4
lea edx, [ebp - 0x368]
mov byte [ebp - 0x338], 0
lea ecx, [ebp - 0x404]
push dword [ebp - 0x338]
call fcn.0040d020
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0
lea edx, [ebp - 0x404]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x340]
call fcn.0040a570
add esp, 4
test eax, eax
jne 0x4085cf
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3f0]
cmp ecx, 8
jb 0x408003
mov edx, dword [ebp - 0x404]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407ff9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407ff9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004270a2
add esp, 8
mov edi, dword [ebp - 0x33c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x348], xmm0
test edi, edi
je 0x40801c
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x340]
mov dword [ebp - 0x348], esi
mov dword [ebp - 0x344], edi
test edi, edi
je 0x408036
lock inc dword [edi + 4]
movlpd qword [ebp - 0x350], xmm0
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0
test edi, edi
je 0x408077
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x408077
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x408077
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40838d
lea edi, [ebp - 0x334]
mov dword [ebp - 0x3e8], edi
nop
push ecx
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x338], eax
push ecx
mov ecx, eax
call fcn.0040a320
mov edx, dword [ebp - 0x410]
lea eax, [ebp - 0x424]
mov esi, dword [ebp - 0x424]
cmp edx, 0x10
mov ecx, dword [ebp - 0x414]
setae byte [ebp - 0x3e2]
cmovae eax, esi
cmp ecx, 4
jae 0x4080db
mov byte [ebp - 0x3e1], 0
jmp 0x408128
add ecx, 0xfffffffc
mov edx, str..ldb
add ecx, eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4080f2
add ecx, 4
xor eax, eax
jmp 0x408119
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408114
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408114
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408114
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x408114
xor eax, eax
jmp 0x408119
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x410]
test eax, eax
sete byte [ebp - 0x3e1]
cmp byte [ebp - 0x3e2], 0
je 0x40815c
lea ecx, [edx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x408152
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ff3
push ecx
push esi
call fcn.004270a2
add esp, 8
push ecx
mov ecx, dword [ebp - 0x338]
lea eax, [ebp - 0x404]
push eax
call fcn.0040a320
cmp dword [ebp - 0x3f0], 0x10
lea ecx, [ebp - 0x3e0]
lea eax, [ebp - 0x404]
cmovae eax, dword [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0x3f0]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x4081d0
mov edx, dword [ebp - 0x404]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4081c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ff3
push ecx
push edx
call fcn.004270a2
add esp, 8
test esi, esi
jne 0x408213
mov esi, dword [ebp - 0x3c0]
mov edi, dword [ebp - 0x3bc]
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x989680
push edx
push eax
call fcn.004275a0
sub eax, esi
sbb edx, edi
test edx, edx
jg 0x40834f
jl 0x40820d
cmp eax, 0x3f480
ja 0x40834f
mov edi, dword [ebp - 0x3e8]
cmp byte [ebp - 0x3e1], 0
je 0x40834f
push ecx
mov ecx, dword [ebp - 0x338]
lea eax, [ebp - 0x404]
push eax
call fcn.0040a320
push 0x20
mov byte [ebp - 4], 0xb
call fcn.00426e1c
mov ecx, dword [ebp - 0x3ec]
xorps xmm0, xmm0
mov dword [ebp - 0x338], eax
mov dword [eax], ecx
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
movups xmm0, xmmword [ebp - 0x404]
movups xmmword [eax + 4], xmm0
movq xmm0, qword [ebp - 0x3f4]
movq qword [eax + 0x14], xmm0
mov dword [ebp - 0x3f4], 0
mov dword [ebp - 0x3f0], 0xf
mov byte [ebp - 0x404], 0
mov dword [eax + 0x1c], 0x4076d0
lea ecx, [ebp - 0x408]
mov byte [ebp - 4], 0xc
push ecx
push 0
push eax
push 0x40f2a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x408375
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x338], 0
mov byte [ebp - 4], 0xb
call fcn.0040dde0
cmp dword [edi + 4], 0
jne 0x40836f
mov ecx, dword [ebp - 0x408]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x40c]
mov dword [edi + 4], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3f0]
movlpd qword [ebp - 0x40c], xmm0
mov dword [edi], eax
cmp ecx, 0x10
jb 0x408346
mov edx, dword [ebp - 0x404]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40833c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ff3
push ecx
push edx
call fcn.004270a2
add esp, 8
add edi, 8
mov dword [ebp - 0x3e8], edi
lea ecx, [ebp - 0x348]
call fcn.00405aa0
mov esi, dword [ebp - 0x348]
test esi, esi
je 0x408387
mov edi, dword [ebp - 0x3e8]
jmp 0x408090
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 6
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov edi, dword [ebp - 0x33c]
mov esi, dword [ebp - 0x344]
test esi, esi
je 0x4083b8
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4083b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4083b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x4083dd
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4083dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4083dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x338], esi
cmp esi, 0x64
jge 0x408479
mov byte [ebp - 4], 0xd
cmp dword [ebp + esi*8 - 0x330], 0
jne 0x408404
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [ebp + esi*8 - 0x330], eax
jne 0x40841b
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push dword [ebp + esi*8 - 0x330]
push dword [ebp + esi*8 - 0x334]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x408456
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, 0x408446
ret
mov dword [ebp + esi*8 - 0x334], 0
mov dword [ebp + esi*8 - 0x330], 0
inc esi
mov dword [ebp - 4], 4
jmp 0x4083df
push 0x402f90
push 0x64
push 8
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 3
push eax
call fcn.004271b3
mov ecx, dword [ebp - 0x354]
cmp ecx, 0x10
jb 0x4084cc
mov edx, dword [ebp - 0x368]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4084c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40859e
push ecx
push edx
call fcn.004270a2
add esp, 8
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 0xf
mov byte [ebp - 0x368], 0
cmp ecx, 0x10
jb 0x408521
mov edx, dword [ebp - 0x380]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408517
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40859e
push ecx
push edx
call fcn.004270a2
add esp, 8
mov ecx, dword [ebp - 0x384]
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0xf
mov byte [ebp - 0x380], 0
cmp ecx, 0x10
jb 0x408572
mov edx, dword [ebp - 0x398]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408568
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40859e
push ecx
push edx
call fcn.004270a2
add esp, 8
mov ecx, dword [ebp - 0x39c]
cmp ecx, 0x10
jb 0x4085ae
mov edx, dword [ebp - 0x3b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4085a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4085a4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004270a2
add esp, 8
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.00426c11
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x404]
mov edx, eax
push ecx
call fcn.004055e0
int3