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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
lea rbp, [rsp + 0x40]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov dil, cl
mov rax, r8
lea rcx, [rbp + 0xb0]
xor r13d, r13d
mov qword [rsp + 0x30], rcx
mov rbx, r9
lea rcx, [rbp]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rcx
mov r14, rdx
mov r15d, 0x500
mov qword [rbp], r13
mov ecx, r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, eax
test eax, eax
jne 0x180001087
lea rcx, str.Internal_error_occured_while_trying_to_output_an_error_message__n
mov esi, 0x40
mov qword [rbp], rcx
mov r12b, r13b
jmp 0x18000108e
mov rcx, qword [rbp]
mov r12b, 1
test dil, dil
je 0x180001107
test rbx, rbx
je 0x1800010cd
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r13w
jne 0x18000109c
inc rdi
xor ecx, ecx
add rsi, rdi
lea rdx, [rsi + rsi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1800010d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180001322
mov rax, qword [rbp]
lea r8, str._s_s
mov r9, rbx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call fcn.180001438
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
jmp 0x18000131c
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], rax
xor r9d, r9d
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rdx, rbx
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], r13d
mov ecx, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, eax
test eax, eax
jne 0x18000115a
lea rax, str.Error:
mov edi, 7
mov qword [rbp + 0x10], rax
mov r15b, r13b
jmp 0x18000115d
mov r15b, 1
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
lea rdx, [rbp + 0x20]
mov rcx, r14
test rax, rax
mov rbx, rax
setne r13b
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
cmp eax, 1
sete al
test rbx, rbx
je 0x1800011c3
test al, al
je 0x1800011c3
mov rdx, qword [rbp + 0x10]
lea r9, [rbp + 8]
xor r13d, r13d
mov r8d, edi
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rdx, qword [rbp]
lea r9, [rbp + 8]
mov r8d, esi
mov qword [rsp + 0x20], r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x180001313
test r13b, r13b
jne 0x1800011ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x180001313
mov r8, qword [rbp + 0x10]
xor r9d, r9d
mov rdx, qword [rbp]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x180001313
mov r8, qword [rbp + 0x10]
xor r13d, r13d
mov qword [rsp + 0x38], r13
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov r9d, edi
mov dword [rsp + 0x28], r13d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
movabs rdx, 0xffffffffffffff0
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x180001236
mov rax, rdx
and rax, 0xfffffffffffffff0
call fcn.180019470
mov r8, qword [rbp + 0x10]
sub rsp, rax
mov r9d, edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], r13
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rbp + 8]
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rbp]
mov r9d, edi
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov ecx, 0xfde9
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1800012c3
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180019470
mov r8, qword [rbp]
sub rsp, rax
mov r9d, edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], r13
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rbp + 8]
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r15b, r15b
je 0x180001322
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12b, r12b
je 0x180001331
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.18000abd0
lea rsp, [rbp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret