Function at 0x1800152f0
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x180015670
cmp dword [rsp + 0x34], 1
jle 0x1800154f8
cmp dword [rsp + 0x34], 4
je 0x180015366
jmp 0x180015670
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x1800153ee
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, 2
lea rdx, [0x18004406c]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1800153ad
mov dword [rsp + 0x5c], 1
jmp 0x1800153b5
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x5c]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
cmp rax, 2
jne 0x1800153d9
mov dword [rsp + 0x44], 1
jmp 0x1800153e1
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x44]
mov byte [rsp + 0x30], al
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.180014b40
mov rcx, qword [rsp + 0x100]
call fcn.1800072c0
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180006930
nop
lea rcx, [rsp + 0xb0]
call fcn.180030720
shl rax, 1
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xb0]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x180015486
mov dword [rsp + 0x64], 1
jmp 0x18001548e
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x64]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xb0]
call fcn.180030720
shl rax, 1
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
jne 0x1800154d1
mov dword [rsp + 0x58], 1
jmp 0x1800154d9
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x58]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0xb0]
call fcn.180011170
jmp 0x1800157f1
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x1800155b0
cmp dword [rsp + 0x110], 1
je 0x1800155b0
xor eax, eax
test eax, eax
je 0x18001552a
lea rax, [0x180044068]
mov qword [rsp + 0x68], rax
jmp 0x180015536
lea rax, [0x18004406c]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, 2
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18001556f
mov dword [rsp + 0x50], 1
jmp 0x180015577
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x50]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
cmp rax, 2
jne 0x18001559b
mov dword [rsp + 0x60], 1
jmp 0x1800155a3
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x60]
mov byte [rsp + 0x30], al
mov rcx, qword [rsp + 0x100]
call fcn.180030720
shl rax, 1
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x100]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov rcx, qword [rsp + 0x90]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x180015611
mov dword [rsp + 0x48], 1
jmp 0x180015619
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x48]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x100]
call fcn.180030720
shl rax, 1
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
jne 0x180015656
mov dword [rsp + 0x4c], 1
jmp 0x18001565e
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x4c]
mov byte [rsp + 0x30], al
jmp 0x1800157f1
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x1800156f8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, 3
lea rdx, [0x180044068]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1800156b7
mov dword [rsp + 0x54], 1
jmp 0x1800156bf
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x54]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
cmp rax, 3
jne 0x1800156e3
mov dword [rsp + 0x38], 1
jmp 0x1800156eb
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x38]
mov byte [rsp + 0x30], al
mov edx, 1
lea rcx, [rsp + 0xc8]
call fcn.180014b40
mov rcx, qword [rsp + 0x100]
call fcn.1800072c0
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.180011010
nop
lea rcx, [rsp + 0xc8]
call fcn.180030720
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xc8]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x180015787
mov dword [rsp + 0x3c], 1
jmp 0x18001578f
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x3c]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0xc8]
call fcn.180030720
mov rcx, qword [rsp + 0x88]
cmp rcx, rax
jne 0x1800157cf
mov dword [rsp + 0x40], 1
jmp 0x1800157d7
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x30]
and eax, dword [rsp + 0x40]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0xc8]
call fcn.180011170
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0xf8
ret