Function at 0x180158c90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1803dc740]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
mov word [rcx + 8], ax
mov qword [rsp + 0x38], 0
mov eax, 7
mov word [rsp + 0x30], ax
movzx eax, byte [rsp + 0x1f8]
mov byte [rsp + 0x40], al
cmp byte [rsp + 0x40], 1
je 0x180158cfc
cmp byte [rsp + 0x40], 2
je 0x180158d14
cmp byte [rsp + 0x40], 3
je 0x180158d2c
jmp 0x180158d42
lea rax, str._info_
mov qword [rsp + 0x38], rax
mov eax, 3
mov word [rsp + 0x30], ax
jmp 0x180158d42
lea rax, str._warning_
mov qword [rsp + 0x38], rax
mov eax, 6
mov word [rsp + 0x30], ax
jmp 0x180158d42
lea rax, str._error_
mov qword [rsp + 0x38], rax
mov eax, 4
mov word [rsp + 0x30], ax
xor ecx, ecx
call fcn.180159690
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.180158a00
lea r9, [rsp + 0x78]
lea r8, str._n__d__m__Y__T_
mov edx, 0x20
lea rcx, [rsp + 0xa0]
call fcn.1800dc2c0
mov rcx, qword [rsp + 0x1f0]
movzx ecx, byte [rcx]
sub rax, rcx
mov qword [rsp + 0x58], rax
mov dx, 0xa
mov rcx, qword [0x1803da1d8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax]
lea rax, [rsp + rax + 0xa0]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [0x1803da1d8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp qword [rsp + 0x200], 0
je 0x180158e30
mov dx, 8
mov rcx, qword [0x1803da1d8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsp + 0x200]
call fcn.1800d81d0
mov dword [rsp + 0x50], eax
mov rax, qword [0x1803da1d8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp qword [rsp + 0x38], 0
je 0x180158e85
movzx edx, word [rsp + 0x30]
mov rcx, qword [0x1803da1d8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsp + 0x38]
call fcn.1800d81d0
mov dword [rsp + 0x54], eax
mov rax, qword [0x1803da1d8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov dx, 7
mov rcx, qword [0x1803da1d8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax]
lea rax, [rsp + rax + 0xa0]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [0x1803da1e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x200], 0
je 0x180158f0d
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x48]
call fcn.180157840
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x38], 0
je 0x180158f29
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call fcn.180157840
mov qword [rsp + 0x48], rax
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0xc0]
test eax, eax
je 0x180158f75
lea rax, [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0xc0]
mov rcx, qword [0x1803da1e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x1f0]
mov byte [rax], 0
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18021fab0
add rsp, 0x1e0
pop rdi
ret