Function at 0x18002ab28
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x118
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp], rax
xor r13d, r13d
mov r12d, ecx
mov qword [rsp + 0x50], r13
lea ebx, [r13 + 1]
cmp dword [0x18009698c], ebx
jne 0x18002ab98
cmp dword [0x180096984], r13d
jne 0x18002ab98
call fcn.18002a7fc
cmp dword [0x18009698c], ebx
jne 0x18002ad91
cmp dword [0x180096984], ebx
jne 0x18002ad91
mov ecx, r12d
call fcn.18002aa18
test eax, eax
je 0x18002ad91
and r12d, 8
call fcn.18002a6dc
test eax, eax
je 0x18002ad91
cmp dword [rbp + 0x68], 0x3e8
lea rax, [rbp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, r13d
jae 0x18002ac01
call fcn.18002a540
mov r8d, dword [rbp + 0x68]
mov rdx, rax
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov ecx, 0x900
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov qword [rsp + 0x60], r13
test eax, eax
je 0x18002ad91
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
movzx edi, word [rsp + 0x76]
movzx esi, word [rsp + 0x74]
movzx r14d, word [rsp + 0x72]
movzx r15d, word [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov dword [rsp + 0x40], edi
lea r8, str.APPMGMT___x._x___02d:_02d:_02d:_03d
mov dword [rsp + 0x38], esi
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x30], r14d
mov r9d, eax
mov dword [rsp + 0x28], r15d
mov edx, 0x40
mov dword [rsp + 0x20], ebx
call fcn.1800061b4
mov eax, dword [0x180096970]
test al, 0x40
jne 0x18002ac9d
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x18007bd40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x180096970]
test al, 8
je 0x18002ad53
mov edx, 0x208
xor ecx, ecx
call qword [sym.imp.KERNELBASE.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18002ad44
mov rcx, rax
call fcn.18002aa3c
test eax, eax
je 0x18002ad44
mov rcx, rdi
call fcn.18002aa70
or rbx, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbx
je 0x18002ad3b
lea r9d, [rbx + 3]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18002ad3b
mov rdx, qword [rsp + 0x50]
inc rbx
cmp word [rdx + rbx*2], r13w
jne 0x18002acfa
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r13
mov r8d, 4
lea rdx, [0x18007bd40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x180096970]
test r12d, r12d
jne 0x18002ad86
test al, 4
je 0x18002ad86
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea eax, [r12 + 1]
mov qword [rsp + 0x58], r13
movzx r9d, ax
mov edx, 0x191
call fcn.18002b130
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180017170
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret