Function at 0x140112950
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xb0]
add rcx, 0x130
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsp + 0xc0], 0
jne 0x1401129af
mov rcx, qword [rsp + 0xb0]
add rcx, 0x130
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140112d82
mov ecx, dword [rsp + 0xc0]
xor edx, edx
mov rax, qword [rsp + 0xb8]
div rcx
mov rcx, rax
mov eax, dword [rsp + 0xc0]
imul rcx, rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x110], rcx
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0xc0]
mov dword [rcx + 0x128], eax
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0xc8]
mov dword [rcx + 0x108], eax
mov ecx, dword [rsp + 0xc0]
xor edx, edx
mov rax, qword [rsp + 0xd0]
div rcx
mov rcx, rax
mov eax, dword [rsp + 0xc0]
imul rcx, rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x118], rcx
mov rcx, qword [rsp + 0xb0]
add rcx, 0x120
mov rdx, qword [rsp + 0xd8]
call fcn.1400020d0
mov r11, qword [rsp + 0xb0]
mov qword [r11], 0
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x110], 0
je 0x140112b71
mov ecx, 0xa8
call fcn.140072204
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140112aa7
mov rcx, qword [rsp + 0x40]
call fcn.1400253b0
mov qword [rsp + 0x80], rax
jmp 0x140112ab3
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 0x128]
mov rdx, qword [rsp + 0xb0]
mov rdx, qword [rdx + 0x110]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx]
call fcn.140112110
test rax, rax
jne 0x140112b71
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140112b43
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x140112b4f
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x110], 0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x118], 0
je 0x140112c23
mov ecx, 0x90
call fcn.140072204
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140112bc2
mov rcx, qword [rsp + 0x60]
call fcn.1400253e0
mov qword [rsp + 0x90], rax
jmp 0x140112bce
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x58]
mov qword [rcx + 8], rax
mov r9, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 0x128]
mov rdx, qword [rsp + 0xb0]
mov rdx, qword [rdx + 0x118]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 8]
call fcn.1401126f0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x168], 0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x160], 0
mov rax, qword [rsp + 0xb0]
cmp qword [rax], 0
je 0x140112d68
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 8], 0
je 0x140112d68
mov ecx, 0xa8
call fcn.140072204
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140112ca9
mov rcx, qword [rsp + 0x70]
call fcn.1400253b0
mov qword [rsp + 0x98], rax
jmp 0x140112cb5
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x10], rax
mov r8d, 0x8010
mov edx, 0x8000000
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x10]
call fcn.140112110
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x168], r11
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x174], 1
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
lea r8, [0x140110b40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x160], r11
mov rcx, qword [rsp + 0xb0]
add rcx, 0x130
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add rsp, 0xa8
ret