Function at 0x180008170
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0xf0]
mov word [rdx + rax], cx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x100]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xd8]
mov ecx, dword [rcx + 4]
mov dword [rax + 0xc], ecx
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x18000821a
cmp dword [rsp + 0x48], 1
je 0x180008233
cmp dword [rsp + 0x48], 2
je 0x18000824c
cmp dword [rsp + 0x48], 3
je 0x1800082ec
jmp 0x180008300
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006a00
mov dword [rsp + 0x44], eax
jmp 0x180008300
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006a30
mov dword [rsp + 0x44], eax
jmp 0x180008300
mov rax, qword [rsp + 0x110]
cmp dword [rax + 8], 0
jl 0x1800082d6
mov ecx, 0x29c
call fcn.180004070
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.18000a830
xor eax, eax
test eax, eax
jne 0x18000825a
mov rax, qword [rsp + 0x110]
mov dword [rax + 8], 0x8007029c
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006d40
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006a60
mov dword [rsp + 0x44], eax
jmp 0x180008300
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006a90
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x110]
mov ecx, dword [rsp + 0xd0]
mov dword [rax], ecx
mov rax, qword [rsp + 0x110]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0xd8]
movzx ecx, byte [rax + 8]
call fcn.180005be0
movzx eax, al
test eax, eax
je 0x180008351
mov rax, qword [rsp + 0x110]
add rax, 4
mov edx, 8
mov rcx, rax
call fcn.180006010
xor eax, eax
test eax, eax
jne 0x180008320
lea rax, [0x180052c00]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x10], eax
cmp qword [rsp + 0xe0], 0
je 0x1800083a9
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1800083a9
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
jmp 0x1800083b2
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x110]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x40], ecx
mov rax, qword [rsp + 0x110]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x44], ecx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x110]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x110]
add rax, 0x68
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x110]
add rax, 0x50
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
cmp qword [0x180052cd0], 0
je 0x1800084b6
call qword [0x180052cd0]
mov qword [rsp + 0x58], rax
jmp 0x1800084bf
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x80], rcx
cmp qword [0x180052ce0], 0
je 0x180008505
mov rax, qword [0x180052ce0]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0x60]
cmp qword [0x180052cd8], 0
je 0x180008527
mov rax, qword [0x180052cd8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0x68]
cmp qword [0x180052c78], 0
je 0x180008555
movzx eax, byte [rsp + 0xe8]
test eax, eax
jne 0x180008555
mov rax, qword [0x180052c78]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0x70]
mov rax, qword [rsp + 0x110]
cmp dword [rax + 8], 0
jl 0x1800085b5
cmp dword [rsp + 0xd0], 3
je 0x180008574
mov byte [rsp + 0x40], 1
jmp 0x180008579
mov byte [rsp + 0x40], 0
movzx ecx, byte [rsp + 0x40]
call fcn.180005be0
movzx ecx, al
call fcn.180008a50
mov rax, qword [rsp + 0x110]
mov dword [rax + 8], 0x8000ffff
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 8]
call fcn.180006d40
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0xc], eax
call fcn.180008100
movzx eax, al
test eax, eax
je 0x1800085d3
movzx eax, byte [0x18004fa00]
test eax, eax
je 0x1800085d3
mov byte [rsp + 0x41], 1
jmp 0x1800085d8
mov byte [rsp + 0x41], 0
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0xe8]
test eax, eax
jne 0x1800085fa
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x180008686
cmp qword [0x180052d20], 0
je 0x180008637
movzx eax, byte [0x180052cf0]
test eax, eax
jne 0x180008637
mov rax, qword [0x180052d20]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0x78]
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xf0]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x18000866d
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.180006110
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x180008684
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800086be
cmp qword [0x180052d20], 0
je 0x1800086be
movzx eax, byte [0x180052cf0]
test eax, eax
jne 0x1800086be
mov rax, qword [0x180052d20]
mov qword [rsp + 0x80], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0x80]
movzx eax, byte [0x180052d00]
test eax, eax
je 0x1800086da
cmp qword [0x180052cc0], 0
je 0x1800086da
call qword [0x180052cc0]
nop
add rsp, 0x90
pop rdi
ret