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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0xb8
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400033a6
cmp dword [rsp + 0x48], 1
je 0x14000367a
cmp dword [rsp + 0x48], 2
je 0x140003443
jmp 0x140003689
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400033c8
cmp dword [rsp + 0x4c], 1
je 0x1400033dc
cmp dword [rsp + 0x4c], 2
je 0x1400033f0
jmp 0x140003402
mov dx, 2
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140003402
mov dx, 1
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140003402
mov dx, 4
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dx, 7
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140003689
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xe0]
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jle 0x140003678
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x14000c7d0], eax
jle 0x1400034dd
lea rcx, [0x14000c7d0]
call fcn.14000518c
cmp dword [0x14000c7d0], 0xffffffff
jne 0x1400034dd
lea rcx, [0x1400036a0]
call fcn.140005468
lea rcx, [0x14000c7d0]
call fcn.140005120
lea rax, [0x14000c0b8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x44]
cmp qword [rsp + 0x78], rax
jae 0x14000350d
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14000c0b8]
call fcn.140003800
lea rax, [0x14000c0b8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0xf
jbe 0x140003539
mov dword [rsp + 0x50], 1
jmp 0x140003541
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140003570
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xe0]
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [0x14000c0b8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0xf
jbe 0x1400035fd
mov dword [rsp + 0x54], 1
jmp 0x140003605
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x140003634
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140003689
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
add rsp, 0xb8
ret