Function at 0x14006d3e0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x300
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov dword [rsp + 0x44], 0x40
mov eax, dword [rsp + 0x310]
dec eax
xor edx, edx
div dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x278
rep stosb byte [rdi], al
cmp dword [rsp + 0x310], 0x400
jbe 0x14006d46c
mov eax, 0xffffffff
jmp 0x14006d8e2
cmp dword [rsp + 0x310], 0
jne 0x14006d4c9
cmp dword [rsp + 0x328], 0
je 0x14006d4c9
mov edx, 1
mov ecx, dword [rsp + 0x320]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SleepEx]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14006d4a9
mov eax, 0x20000000
jmp 0x14006d8e2
cmp dword [rsp + 0x60], 0xc0
jne 0x14006d4bf
mov eax, 0x30000000
jmp 0x14006d8e2
mov eax, 0xffffffff
jmp 0x14006d8e2
cmp dword [rsp + 0x310], 0x40
ja 0x14006d571
mov eax, dword [rsp + 0x328]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x320]
xor r8d, r8d
mov rdx, qword [rsp + 0x318]
mov ecx, dword [rsp + 0x310]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForMultipleObjectsEx]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xc0
jne 0x14006d51a
mov eax, 0x30000000
jmp 0x14006d8e2
cmp dword [rsp + 0x38], 0x102
jne 0x14006d52e
mov eax, 0x20000000
jmp 0x14006d8e2
cmp dword [rsp + 0x38], 0x80
jb 0x14006d550
cmp dword [rsp + 0x38], 0xc0
jae 0x14006d550
mov eax, dword [rsp + 0x38]
add eax, 0xfffff80
jmp 0x14006d8e2
cmp dword [rsp + 0x38], 0
jb 0x14006d567
cmp dword [rsp + 0x38], 0x40
jae 0x14006d567
mov eax, dword [rsp + 0x38]
jmp 0x14006d8e2
mov eax, 0xffffffff
jmp 0x14006d8e2
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14006d596
jmp 0x14006d841
mov dword [rsp + 0x34], 0
jmp 0x14006d5aa
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x14006d6ad
mov eax, dword [rsp + 0x34]
imul eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
mov dword [rsp + rax + 0x90], 0xfffffffe
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
mov qword [rsp + rax + 0x78], rcx
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x318]
lea rax, [rcx + rax*8]
mov ecx, dword [rsp + 0x34]
imul rcx, rcx, 0x28
mov qword [rsp + rcx + 0x88], rax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x310]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x44]
jae 0x14006d635
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x310]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
jmp 0x14006d63d
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x64]
mov dword [rsp + rax + 0x80], ecx
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x70]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14006d920]
mov edx, 0x800
xor ecx, ecx
call fcn.140088f2c
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x68]
mov qword [rsp + rax + 0x70], rcx
cmp qword [rsp + 0x68], 0
jne 0x14006d6a8
jmp 0x14006d841
jmp 0x14006d5a0
mov r8d, dword [rsp + 0x328]
mov edx, dword [rsp + 0x320]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObjectEx]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xc0
jne 0x14006d6e2
mov dword [rsp + 0x40], 0x30000000
jmp 0x14006d841
cmp dword [rsp + 0x4c], 0x102
jne 0x14006d6f9
mov dword [rsp + 0x40], 0x20000000
jmp 0x14006d841
cmp dword [rsp + 0x4c], 0
je 0x14006d70d
mov dword [rsp + 0x40], 0xffffffff
jmp 0x14006d841
mov dword [rsp + 0x30], 0
jmp 0x14006d721
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x14006d841
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0xfffffffe
jne 0x14006d743
jmp 0x14006d717
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0xffffffff
je 0x14006d77f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0xc0
je 0x14006d77f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0x102
jne 0x14006d78c
mov dword [rsp + 0x40], 0xffffffff
jmp 0x14006d841
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0x80
jb 0x14006d7ec
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x28
mov ecx, dword [rsp + rcx + 0x80]
add ecx, 0x80
cmp dword [rsp + rax + 0x90], ecx
jae 0x14006d7ec
mov eax, dword [rsp + 0x30]
imul eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x28
mov ecx, dword [rsp + rcx + 0x90]
lea eax, [rax + rcx + 0xfffff80]
mov dword [rsp + 0x40], eax
jmp 0x14006d841
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0
jb 0x14006d83c
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x28
mov ecx, dword [rsp + rcx + 0x80]
cmp dword [rsp + rax + 0x90], ecx
jae 0x14006d83c
mov eax, dword [rsp + 0x30]
imul eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x28
add eax, dword [rsp + rcx + 0x90]
mov dword [rsp + 0x40], eax
jmp 0x14006d841
jmp 0x14006d717
mov dword [rsp + 0x3c], 0
jmp 0x14006d855
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x3c], eax
jae 0x14006d8cb
mov eax, dword [rsp + 0x3c]
imul rax, rax, 0x28
cmp qword [rsp + rax + 0x70], 0
je 0x14006d8c9
mov eax, dword [rsp + 0x3c]
imul rax, rax, 0x28
cmp dword [rsp + rax + 0x90], 0xfffffffe
jne 0x14006d89e
mov eax, dword [rsp + 0x3c]
imul rax, rax, 0x28
xor r8d, r8d
mov rdx, qword [rsp + rax + 0x70]
lea rcx, [0x14006d900]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_QueueUserAPC]
mov eax, dword [rsp + 0x3c]
imul rax, rax, 0x28
mov edx, 0xffffffff
mov rcx, qword [rsp + rax + 0x70]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x3c]
imul rax, rax, 0x28
mov rcx, qword [rsp + rax + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14006d84b
cmp qword [rsp + 0x58], 0
je 0x14006d8de
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140075860
add rsp, 0x300
pop rdi
ret