Function at 0x1800412c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [0x180065840], 0
je 0x18004139f
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x34], 0x15
cmp dword [rsp + 0x34], 0
jle 0x180041341
mov eax, dword [rsp + 0x34]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x18004132d
mov dword [rsp + 0x38], 4
mov eax, dword [rsp + 0x34]
sub eax, 2
mov dword [rsp + 0x34], eax
jmp 0x1800412f9
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
jmp 0x1800412f9
mov dword [rsp + 0x40], 5
mov dword [rsp + 0x3c], 0xf
cmp dword [rsp + 0x3c], 0
jle 0x180041398
mov eax, dword [rsp + 0x3c]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x180041384
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x180041351
mov dword [rsp + 0x40], 4
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x180041351
xor eax, eax
jmp 0x180041816
cmp qword [rsp + 0xa0], 0
jne 0x180041480
cmp qword [rsp + 0xa8], 0
jne 0x180041480
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x44], 5
mov eax, dword [rsp + 0x44]
test eax, eax
jle 0x18004141c
mov eax, dword [rsp + 0x44]
cmp eax, 1
jle 0x1800413f8
mov eax, dword [rsp + 0x48]
and eax, 0x204d
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
sub eax, 2
mov dword [rsp + 0x44], eax
jmp 0x1800413cd
mov eax, dword [rsp + 0x48]
cmp eax, 0x807
jle 0x180041410
mov eax, dword [rsp + 0x48]
and eax, 0x80
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
jmp 0x1800413cd
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 3
mov eax, dword [rsp + 0x50]
test eax, eax
jle 0x180041479
mov eax, dword [rsp + 0x50]
cmp eax, 1
jle 0x180041457
mov eax, dword [rsp + 0x4c]
and eax, 0x1907
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
sub eax, 2
mov dword [rsp + 0x50], eax
jmp 0x18004142c
mov eax, dword [rsp + 0x4c]
cmp eax, 0x805
jle 0x18004146d
mov eax, dword [rsp + 0x4c]
and eax, 0x7e
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x18004142c
xor eax, eax
jmp 0x180041816
cmp qword [rsp + 0xa0], 0
je 0x180041558
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0x14
cmp dword [rsp + 0x5c], 0
jle 0x1800414e6
mov eax, dword [rsp + 0x5c]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x1800414d2
mov dword [rsp + 0x58], 4
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x5c], eax
jmp 0x18004149f
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x5c], eax
jmp 0x18004149f
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x54], 0x13
cmp dword [rsp + 0x54], 0
jle 0x18004153e
mov eax, dword [rsp + 0x54]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x180041529
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
jmp 0x1800414f6
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x54]
sub eax, 2
mov dword [rsp + 0x54], eax
jmp 0x1800414f6
mov r8d, 0x104
mov rdx, qword [rsp + 0xa0]
lea rcx, [0x180065860]
call fcn.18004b4f0
mov dword [0x180065850], 0
mov dword [0x180065848], 0
mov rax, qword [rsp + 0xa8]
mov qword [0x180065968], rax
mov eax, dword [rsp + 0xd8]
mov dword [0x18006584c], eax
mov eax, dword [rsp + 0xd0]
mov dword [0x180062360], eax
mov rax, qword [rsp + 0xb0]
mov qword [0x180065970], rax
mov rax, qword [rsp + 0xc0]
mov qword [0x180065978], rax
mov rax, qword [rsp + 0xb8]
mov qword [0x180065980], rax
mov rax, qword [rsp + 0xc8]
mov qword [0x180065988], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x68], 0x10
cmp dword [rsp + 0x68], 0
jle 0x180041631
mov eax, dword [rsp + 0x68]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x18004161c
mov dword [rsp + 0x64], 4
mov eax, dword [rsp + 0x68]
dec eax
mov dword [rsp + 0x68], eax
jmp 0x1800415e9
mov dword [rsp + 0x64], 4
mov eax, dword [rsp + 0x68]
sub eax, 2
mov dword [rsp + 0x68], eax
jmp 0x1800415e9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180040d30]
xor edx, edx
xor ecx, ecx
call fcn.18004a0e4
mov qword [0x180065840], rax
cmp qword [0x180065840], 0
jne 0x180041729
mov dword [rsp + 0x74], 7
mov dword [rsp + 0x6c], 0x11
cmp dword [rsp + 0x6c], 0
jle 0x1800416c3
mov eax, dword [rsp + 0x6c]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x1800416ae
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x6c]
dec eax
mov dword [rsp + 0x6c], eax
jmp 0x18004167b
mov dword [rsp + 0x74], 4
mov eax, dword [rsp + 0x6c]
sub eax, 2
mov dword [rsp + 0x6c], eax
jmp 0x18004167b
mov dword [rsp + 0x70], 5
mov dword [rsp + 0x78], 5
mov eax, dword [rsp + 0x78]
test eax, eax
jle 0x180041722
mov eax, dword [rsp + 0x78]
cmp eax, 1
jle 0x1800416fe
mov eax, dword [rsp + 0x70]
and eax, 0x9c1
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x78]
sub eax, 2
mov dword [rsp + 0x78], eax
jmp 0x1800416d3
mov eax, dword [rsp + 0x70]
cmp eax, 0x807
jle 0x180041716
mov eax, dword [rsp + 0x70]
and eax, 0x80
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x78]
dec eax
mov dword [rsp + 0x78], eax
jmp 0x1800416d3
xor eax, eax
jmp 0x180041816
mov dword [rsp + 0x88], 2
mov dword [rsp + 0x7c], 0x13
cmp dword [rsp + 0x7c], 0
jle 0x18004178b
mov eax, dword [rsp + 0x7c]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cdqe
add rax, 4
cmp rax, 4
jbe 0x180041773
mov dword [rsp + 0x88], 4
mov eax, dword [rsp + 0x7c]
sub eax, 2
mov dword [rsp + 0x7c], eax
jmp 0x18004173c
mov dword [rsp + 0x88], 4
mov eax, dword [rsp + 0x7c]
sub eax, 2
mov dword [rsp + 0x7c], eax
jmp 0x18004173c
mov dword [rsp + 0x80], 6
mov dword [rsp + 0x84], 0xa
mov eax, dword [rsp + 0x84]
test eax, eax
jle 0x180041811
mov eax, dword [rsp + 0x84]
cmp eax, 1
jle 0x1800417de
mov eax, dword [rsp + 0x80]
and eax, 0x1f29
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x84]
sub eax, 2
mov dword [rsp + 0x84], eax
jmp 0x1800417a1
mov eax, dword [rsp + 0x80]
cmp eax, 0x80c
jle 0x1800417ff
mov eax, dword [rsp + 0x80]
and eax, 0x85
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x84]
dec eax
mov dword [rsp + 0x84], eax
jmp 0x1800417a1
mov eax, 1
add rsp, 0x98
ret