Function at 0x402bb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
xor edx, edx
mov ecx, 8
div rcx
dec rax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x70], 0
jmp 0x402c77
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 8
jae 0x402d83
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 0x110]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
jmp 0x402cd0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x30], eax
jae 0x402d7e
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 8]
mov rax, qword [rcx + rax*8]
xor rax, rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
movzx ecx, al
mov rax, qword [rsp + 0x38]
shr rax, cl
mov ecx, dword [rsp + 0x30]
inc ecx
mov edx, 0x40
sub edx, ecx
mov ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x38]
shl rdx, cl
mov rcx, rdx
or rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
call fcn.0040aba0
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rcx + rax*8]
xor rax, rdx
mov rcx, qword [rsp + 0x78]
cmp rax, qword [rcx]
jne 0x402d79
jmp 0x402d83
jmp 0x402cc6
jmp 0x402c6d
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x30], eax
jne 0x402dc6
lea rax, [0x0040c1c0]
mov qword [rsp + 0x20], rax
lea r9, [0x0040c1a0]
mov r8d, 0x347
lea rdx, [0x0040bf40]
lea rcx, [0x0040c160]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x94], 0
jmp 0x402dd1
mov dword [rsp + 0x94], 1
cmp dword [rsp + 0x94], 0
je 0x4030ac
mov eax, dword [rsp + 0x70]
and eax, 7
test eax, eax
jne 0x402df7
mov dword [rsp + 0x98], 0
jmp 0x402e02
mov dword [rsp + 0x98], 1
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x70]
and eax, 7
test eax, eax
jne 0x402e30
mov dword [rsp + 0x9c], 0
jmp 0x402e3b
mov dword [rsp + 0x9c], 1
mov eax, dword [rsp + 0x9c]
add eax, 2
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x90]
shl ecx, 3
mov ecx, ecx
add rax, rcx
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.0040a4e0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
dec ecx
mov dword [rsp + 0x30], ecx
test eax, eax
je 0x402f5d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + rax*8 + 0x48]
xor rax, rcx
mov ecx, dword [rsp + 0x30]
mov qword [rsp + rcx*8 + 0x48], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x40
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx ecx, al
mov rax, qword [rsp + 0x38]
shr rax, cl
mov qword [rsp + 0xa0], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x40
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov ecx, 0x40
sub ecx, eax
mov eax, ecx
mov eax, eax
movzx ecx, al
mov rax, qword [rsp + 0x38]
shl rax, cl
mov rcx, qword [rsp + 0xa0]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
call fcn.0040aba0
mov qword [rsp + 0x38], rax
jmp 0x402ea2
lea rax, [rsp + 0x50]
mov ecx, dword [rsp + 0x70]
sub rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x270
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.00406c20
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
dec ecx
mov dword [rsp + 0x30], ecx
test eax, eax
je 0x40305c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + rax*8 + 0x48]
xor rax, rcx
mov ecx, dword [rsp + 0x30]
mov qword [rsp + rcx*8 + 0x48], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x40
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx ecx, al
mov rax, qword [rsp + 0x38]
shr rax, cl
mov qword [rsp + 0xa8], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0x40
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov ecx, 0x40
sub ecx, eax
mov eax, ecx
mov eax, eax
movzx ecx, al
mov rax, qword [rsp + 0x38]
shl rax, cl
mov rcx, qword [rsp + 0xa8]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
call fcn.0040aba0
mov qword [rsp + 0x38], rax
jmp 0x402fa1
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x90]
shl ecx, 3
mov ecx, ecx
add rax, rcx
mov r8d, 0x20
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0xc0]
add rax, 0x88
lock inc qword [rax]
add rsp, 0xb0
pop rdi
ret