Function at 0x140001be4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, dword [rsp + 0xb0]
mov r13, r8
mov r15, qword [rsp + 0xd0]
xor r8d, r8d
mov rbp, qword [rsp + 0xe0]
mov r12, r9
mov ebx, dword [rsp + 0xb8]
mov edi, r8d
mov r10d, r14d
mov word [r15], r8w
mov byte [rbp], r8b
test r14d, r14d
je 0x140001caf
sub r10d, 1
je 0x140001ca6
sub r10d, 1
je 0x140001c9d
sub r10d, 1
je 0x140001c5d
cmp r10d, 1
jne 0x140001cb8
mov ecx, ebx
call fcn.1400014a0
jmp 0x140001cb6
test ebx, ebx
js 0x140001c94
mov rax, qword [rsp + 0xa8]
mov ebx, 0x8007029c
mov dword [rsp + 0x38], ebx
mov r8, r13
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
call fcn.14000213c
mov ecx, ebx
call fcn.140001484
jmp 0x140001cb6
mov ecx, ebx
call fcn.140001468
jmp 0x140001cb6
mov ecx, ebx
call fcn.14000144c
jmp 0x140001cb6
mov ecx, ebx
call fcn.140001430
mov edi, eax
mov rsi, qword [rsp + 0xf0]
mov dword [rsi], r14d
mov r14d, 1
mov eax, r14d
mov dword [rsi + 4], ebx
lock xadd dword [0x14000a824], eax
add eax, r14d
xor ecx, ecx
mov dword [rsi + 8], eax
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140001cf1
cmp word [rax], cx
jne 0x140001cf4
mov rax, rcx
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [0x14000a7d0]
mov dword [rsi + 0x18], eax
mov eax, dword [rsp + 0x88]
mov dword [rsi + 0x38], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsi + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x30], r13
xor r13d, r13d
mov qword [rsi + 0x88], rax
mov dword [rsi + 0x3c], edi
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x40], r13
mov dword [rsi + 0x60], r13d
mov qword [rsi + 0x68], r13
mov qword [rsi + 0x70], r13
mov dword [rsi + 0x48], r13d
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], r13
test rbx, rbx
je 0x140001d78
mov rcx, rbx
call qword [0x140006260]
call rbx
jmp 0x140001d7b
mov rax, r13
mov rbx, qword [0x14000a7e0]
mov r12b, r13b
mov qword [rsi + 0x78], rax
mov byte [rbp], r13b
test rbx, rbx
je 0x140001dcf
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov r9d, eax
movabs rax, 0xcccccccccccccccd
mul r9
shr rdx, 4
lea rcx, [rdx + rdx*4]
shl rcx, 2
sub r8, rcx
mov rbx, qword [rbx + r8*8]
jmp 0x140001dca
cmp dword [rbx + 8], r9d
je 0x140001dd2
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001dc0
mov rbx, r13
test rbx, rbx
je 0x140001e26
cmp qword [rbx], r13
je 0x140001e26
mov byte [rbp], r13b
mov r9d, 0x400
mov rdx, qword [rbx]
mov r8, rbp
mov rcx, rsi
call fcn.1400016b0
test al, al
je 0x140001dfc
mov qword [rsi + 0x40], rbp
mov rbp, qword [rbx]
mov rdi, qword [rbp + 8]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x140006260]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rbp, qword [rbp + 0x10]
or r12b, al
test rbp, rbp
jne 0x140001dff
mov rdi, qword [0x14000a7a8]
test rdi, rdi
je 0x140001e4a
mov rcx, rdi
call qword [0x140006260]
mov rdx, rsi
mov cl, r12b
call rdi
mov rdi, qword [0x14000a7a8]
mov rbx, qword [0x14000a7a0]
test rbx, rbx
je 0x140001e6b
mov rcx, rbx
call qword [0x140006260]
mov rcx, rsi
call rbx
mov rdi, qword [0x14000a7a8]
cmp dword [rsi + 4], r13d
jl 0x140001e7f
cmp dword [rsp + 0xb0], 4
jne 0x140001f26
cmp byte [0x14000a7f0], r13b
mov rbx, qword [0x14000a7f8]
jne 0x140001e9c
test rdi, rdi
jne 0x140001e99
test rbx, rbx
je 0x140001e9c
mov r14b, r13b
cmp byte [rsp + 0xc8], r13b
jne 0x140001ece
test r14b, r14b
jne 0x140001ece
test rbx, rbx
je 0x140001f0e
cmp byte [0x14000a7d8], r13b
jne 0x140001f0e
mov rcx, rbx
call qword [0x140006260]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call rbx
jmp 0x140001f0e
mov edi, 0x800
test rbx, rbx
je 0x140001eec
mov rcx, rbx
call qword [0x140006260]
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call rbx
cmp word [r15], r13w
jne 0x140001f00
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.1400011fc
test r14b, r14b
je 0x140001f0e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x78]
lea r8, str.internal_sdkincwil_result.h
mov edx, 0xb52
call fcn.14000241c
int3