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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
mov eax, 0x1300
call fcn.140041400
sub rsp, rax
mov rax, qword [0x1400597a8]
xor rax, rsp
mov qword [rsp + 0x12f0], rax
xor edi, edi
mov r13, r8
mov r12, rdx
mov esi, ecx
cmp qword [0x14005cfc0], rdi
jne 0x14000bcb4
xor eax, eax
lea rbx, [fcn.14000bbb0]
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bca0
cmp dword [rsp + 0x88], 0x1000
jne 0x14000bca0
lea rcx, [rsp + 0xa8]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0xa0], rbx
call fcn.14002ea20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [rsp + 0xa0]
lea rdx, [fcn.1400097c0]
mov ecx, eax
call fcn.140009b50
cmp word [rsp + 0xa8], di
je 0x14000bca0
lea rdx, [rsp + 0xa8]
lea rcx, [0x14005cfd0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [0x14005cfd0]
call qword [0x140046488]
mov qword [0x14005cfc0], rax
test esi, esi
je 0x14000bd6c
cmp word [0x14005ca88], di
je 0x14000bf12
lea rcx, [0x14005cc98]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x14005ca80]
test r11, r11
je 0x14000bce8
cmp r11, 0xffffffffffffffff
jne 0x14000bd5f
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, [0x14005ca88]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14005ca80], rax
cmp rax, 0xffffffffffffffff
jne 0x14000bd37
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14005cc98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000bf12
lea r9, [rsp + 0x54]
lea rdx, [rsp + 0x50]
mov r8d, 2
mov rcx, rax
mov byte [rsp + 0x50], 0xff
mov byte [rsp + 0x51], 0xfe
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x14005cc98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x1330], rbp
test esi, esi
jne 0x14000bd81
lea rbp, [0x14004ba88]
jmp 0x14000bdab
cmp esi, 1
jne 0x14000bd8f
lea rbp, [0x14004ba90]
jmp 0x14000bdab
cmp esi, 2
jne 0x14000bd9d
lea rbp, [0x14004ba98]
jmp 0x14000bdab
lea rbp, [0x14004baa0]
cmp esi, 3
cmovne rbp, rdi
xor eax, eax
lea rcx, [rsp + 0x58]
mov word [rsp + 0x2b0], di
mov qword [rsp + 0x2b2], rax
mov qword [rsp + 0x2ba], rax
mov qword [rsp + 0x2c2], rax
mov qword [rsp + 0x2ca], rax
mov qword [rsp + 0x2d2], rax
mov qword [rsp + 0x2da], rax
mov qword [rsp + 0x2e2], rax
mov dword [rsp + 0x2ea], eax
mov word [rsp + 0x2ee], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x60]
movzx edx, word [rsp + 0x5e]
movzx r8d, word [rsp + 0x5a]
movzx r11d, word [rsp + 0x64]
movzx eax, word [rsp + 0x62]
movzx r9d, word [rsp + 0x58]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r8, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rsp + 0x2b0]
mov edx, 0x20
call qword [0x140046498]
mov rbx, qword [0x14005cfc0]
test r12, r12
cmovne rbx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x2b0]
lea r8, str.__s__tid:_d___s___s__s_r_n
lea rcx, [rsp + 0x2f0]
mov edx, 0x800
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call qword [0x140046498]
mov rbp, qword [rsp + 0x1330]
test esi, esi
je 0x14000bf04
lea rcx, [0x14005cc98]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14005ca80]
lea r9, [rsp + 0x54]
lea rdx, [rsp + 0x2f0]
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x14005cc98]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.14000bad0
cmp esi, 1
jbe 0x14000bf12
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
mov rcx, qword [rsp + 0x12f0]
xor rcx, rsp
call fcn.140028300
add rsp, 0x1300
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret