Function at 0x18015e150
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
mov rax, qword [0x180370940]
xor rax, rbp
mov qword [rbp + 0x3d0], rax
xor eax, eax
mov rcx, qword [rbp + 0x400]
mov word [rcx + 8], ax
mov qword [rbp + 8], 0
mov eax, 7
mov word [rbp + 0x24], ax
movzx eax, byte [rbp + 0x408]
mov byte [rbp + 0x3c4], al
cmp byte [rbp + 0x3c4], 1
je 0x18015e1de
cmp byte [rbp + 0x3c4], 2
je 0x18015e1f4
cmp byte [rbp + 0x3c4], 3
je 0x18015e20a
jmp 0x18015e21e
lea rax, str._info_
mov qword [rbp + 8], rax
mov eax, 3
mov word [rbp + 0x24], ax
jmp 0x18015e21e
lea rax, str._warning_
mov qword [rbp + 8], rax
mov eax, 6
mov word [rbp + 0x24], ax
jmp 0x18015e21e
lea rax, str._error_
mov qword [rbp + 8], rax
mov eax, 4
mov word [rbp + 0x24], ax
xor ecx, ecx
call fcn.18015e7f0
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x68]
call fcn.18015e7b0
lea r9, [rbp + 0x68]
lea r8, str._n__d__m__Y__T_
mov edx, 0x20
lea rcx, [rbp + 0xa8]
call fcn.1800d2cd0
mov rcx, qword [rbp + 0x400]
movzx ecx, byte [rcx]
sub rax, rcx
mov qword [rbp + 0xe8], rax
mov dx, 0xa
mov rcx, qword [0x18036e3f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rbp + 0x400]
movzx eax, byte [rax]
lea rax, [rbp + rax + 0xa8]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0xe8]
mov rdx, rax
mov rcx, qword [0x18036e3f0]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp qword [rbp + 0x410], 0
je 0x18015e30e
mov dx, 8
mov rcx, qword [0x18036e3f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rbp + 0x410]
call fcn.1800cb7f0
mov dword [rbp + 0x3c4], eax
mov rax, qword [0x18036e3f0]
mov qword [rbp + 0x3c8], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x3c4]
mov rdx, qword [rbp + 0x410]
mov rcx, qword [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp qword [rbp + 8], 0
je 0x18015e367
movzx edx, word [rbp + 0x24]
mov rcx, qword [0x18036e3f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rbp + 8]
call fcn.1800cb7f0
mov dword [rbp + 0x3c4], eax
mov rax, qword [0x18036e3f0]
mov qword [rbp + 0x3c8], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x3c4]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov dx, 7
mov rcx, qword [0x18036e3f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rbp + 0x400]
movzx eax, byte [rax]
lea rax, [rbp + rax + 0xa8]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0xe8]
mov rdx, rax
mov rcx, qword [0x18036e3f8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rbp + 0x110]
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x410], 0
je 0x18015e3f2
mov rdx, qword [rbp + 0x410]
mov rcx, qword [rbp + 0x238]
call fcn.18013fe00
mov qword [rbp + 0x238], rax
cmp qword [rbp + 8], 0
je 0x18015e410
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x238]
call fcn.18013fe00
mov qword [rbp + 0x238], rax
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rbp + rax + 0x110]
test eax, eax
je 0x18015e45c
lea rax, [rbp + 0x110]
mov rcx, qword [rbp + 0x238]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x110]
mov rcx, qword [0x18036e3f8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbp + 0x400]
mov byte [rax], 0
mov rax, qword [rbp + 0x400]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x18026ea90]
call fcn.180224a80
mov rax, rdi
mov rcx, qword [rbp + 0x3d0]
xor rcx, rbp
call fcn.180224dd0
lea rsp, [rbp + 0x3e8]
pop rdi
pop rbp
ret