Function at 0x18016a440
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x238
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x248]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x250]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x240]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x240]
add rax, 0x48
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
call fcn.1801700c0
nop
mov rax, qword [rsp + 0x240]
add rax, 0x58
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x37]
mov rcx, qword [rsp + 0x90]
call fcn.180170850
nop
mov rax, qword [rsp + 0x240]
add rax, 0x68
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x36]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
call fcn.18016f840
nop
mov rax, qword [rsp + 0x240]
add rax, 0x78
mov qword [rsp + 0xe8], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x35]
mov rcx, qword [rsp + 0xe8]
call fcn.18016f930
nop
mov rax, qword [rsp + 0x240]
mov ecx, dword [rsp + 0x258]
mov dword [rax + 0x88], ecx
mov rax, qword [rsp + 0x240]
mov dword [rax + 0x98], 0
xor r8d, r8d
lea rdx, [0x1803ac0e0]
mov rcx, qword [rsp + 0x248]
call fcn.1802bfe70
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x94], eax
mov r8d, 0x12c
lea rdx, [0x1803ac0c0]
mov rcx, qword [rsp + 0x248]
call fcn.1802bfe70
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x70], 0x708
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x70]
call fcn.180083730
mov eax, dword [rax]
imul eax, eax, 0x3e8
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x8c], eax
mov r8d, 0x3840
lea rdx, [0x1803ac118]
mov rcx, qword [rsp + 0x248]
call fcn.1802bfe70
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x6c], 0x2a300
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x6c]
call fcn.180083730
mov eax, dword [rax]
imul eax, eax, 0x3e8
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x90], eax
mov dword [rsp + 0x5c], 0xdbba00
mov dword [rsp + 0x74], 0x36ee80
mov rax, qword [rsp + 0x240]
add rax, 0x90
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x74]
call fcn.180083730
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx]
cmp dword [rax], ecx
jae 0x18016a683
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
jmp 0x18016a693
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx]
mov dword [rax + 0x90], ecx
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x180]
call fcn.1800740e0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x240]
add rax, 0x58
lea rdx, [rsp + 0x64]
mov rcx, rax
call fcn.18016e9c0
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.18016e490
nop
lea rcx, [rsp + 0x180]
call fcn.180074290
mov dword [rsp + 0x4c], 1
lea rcx, [rsp + 0x198]
call fcn.1800740e0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x240]
add rax, 0x58
lea rdx, [rsp + 0x4c]
mov rcx, rax
call fcn.18016e9c0
mov rdx, qword [rsp + 0x110]
mov rcx, rax
call fcn.18016e490
nop
lea rcx, [rsp + 0x198]
call fcn.180074290
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x1b0]
call fcn.180073040
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x240]
add rax, 0x48
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18016e5f0
mov rdx, qword [rsp + 0x100]
mov rcx, rax
call fcn.180073190
nop
lea rcx, [rsp + 0x1b0]
call fcn.180073360
mov dword [rsp + 0x58], 1
lea rcx, [rsp + 0x1f0]
call fcn.180073040
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x240]
add rax, 0x48
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.18016e5f0
mov rdx, qword [rsp + 0xd0]
mov rcx, rax
call fcn.180073190
nop
lea rcx, [rsp + 0x1f0]
call fcn.180073360
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x240]
add rax, 0x78
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.18016ef70
mov byte [rax], 0
mov dword [rsp + 0x68], 1
mov rax, qword [rsp + 0x240]
add rax, 0x78
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.18016ef70
mov byte [rax], 0
mov rcx, qword [rsp + 0x240]
call fcn.18016d410
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18016a90e
xor ecx, ecx
call fcn.18017c8d4
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jle 0x18016a90e
xor edx, edx
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x90]
mov ecx, 0x3e8
div ecx
cmp dword [rsp + 0x3c], eax
jae 0x18016a90e
mov eax, dword [rsp + 0x3c]
imul eax, eax, 0x3e8
mov rcx, qword [rsp + 0x240]
mov ecx, dword [rcx + 0x90]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x8c], eax
xor eax, eax
test eax, eax
jne 0x18016a908
mov rax, qword [rsp + 0x240]
cmp dword [rax + 0x94], 0
jbe 0x18016a958
call fcn.18017d27c
xor edx, edx
mov rcx, qword [rsp + 0x240]
div dword [rcx + 0x94]
mov eax, edx
imul eax, eax, 0xea60
mov rcx, qword [rsp + 0x240]
add eax, dword [rcx + 0x8c]
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x8c], eax
mov eax, dword [0x1803cb4a4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18016a974
mov eax, dword [rsp + 0x30]
or eax, 2
mov dword [rsp + 0x30], eax
lea r8, [0x1803ac230]
lea rdx, [rsp + 0x1d0]
mov rax, qword [rsp + 0x240]
mov rcx, qword [rax + 0x30]
call fcn.1802c0620
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x140]
call fcn.1800034a0
nop
lea rcx, [rsp + 0x1d0]
call fcn.180073fc0
lea r8, [0x1803ac210]
lea rdx, [rsp + 0x210]
mov rax, qword [rsp + 0x240]
mov rcx, qword [rax + 0x30]
call fcn.1802c0620
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x160]
call fcn.1800034a0
nop
lea rcx, [rsp + 0x210]
call fcn.180073fc0
lea rcx, [rsp + 0x140]
call fcn.1800738f0
movzx eax, al
test eax, eax
je 0x18016aa52
lea rdx, [0x1803ad270]
lea rcx, [rsp + 0x140]
call fcn.180073420
lea rcx, [rsp + 0x160]
call fcn.1800738f0
movzx eax, al
test eax, eax
je 0x18016aa7a
lea rdx, [0x1803ad2b0]
lea rcx, [rsp + 0x160]
call fcn.180073420
xor eax, eax
test eax, eax
jne 0x18016aa7a
mov rax, qword [rsp + 0x240]
add rax, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x1803cb4a4]
and eax, 3
test eax, eax
je 0x18016aaa8
xor eax, eax
test eax, eax
jne 0x18016aaa2
lea rax, [0x18016ae00]
mov qword [rsp + 0x118], rax
lea rax, [fcn.18016ad60]
mov qword [rsp + 0x120], rax
lea rax, [fcn.18016adc0]
mov qword [rsp + 0x128], rax
lea rax, [0x18016ade0]
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x30]
and eax, 3
mov eax, eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x240]
mov r8, qword [rsp + rax*8 + 0x118]
mov edx, 0x100000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x240]
mov qword [rcx], rax
lea rcx, [rsp + 0x160]
call fcn.180073360
nop
lea rcx, [rsp + 0x140]
call fcn.180073360
nop
mov rax, qword [rsp + 0x240]
add rsp, 0x238
ret