Function at 0x180003af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x140]
test eax, eax
jne 0x180003cf5
mov rax, qword [rsp + 0x130]
add rax, 0xb0
mov rcx, rax
call fcn.180005290
lea rcx, [rsp + 0x70]
call fcn.1800056b0
nop
lea rcx, [rsp + 0x48]
call fcn.1800056b0
nop
mov rax, qword [rsp + 0x130]
add rax, 0xb0
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1800054b0
lea rcx, [rsp + 0x48]
call fcn.1800058a0
mov ecx, 0x400
sub ecx, eax
mov eax, ecx
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.180005830
mov rax, qword [rsp + 0x130]
add rax, 0x30
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.180004d50
movzx eax, al
test eax, eax
jne 0x180003bdd
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x10], 0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x48]
call fcn.180005700
nop
lea rcx, [rsp + 0x70]
call fcn.180005700
movzx eax, byte [rsp + 0x30]
jmp 0x180003ed9
lea rcx, [rsp + 0x70]
call fcn.1800058a0
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003c29
cmp dword [rsp + 0x38], 4
je 0x180003c59
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x10], 0
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x48]
call fcn.180005700
nop
lea rcx, [rsp + 0x70]
call fcn.180005700
movzx eax, byte [rsp + 0x31]
jmp 0x180003ed9
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x70]
call fcn.180005870
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
mov rdx, rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003ca1
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
je 0x180003cd1
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x10], 0
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x48]
call fcn.180005700
nop
lea rcx, [rsp + 0x70]
call fcn.180005700
movzx eax, byte [rsp + 0x32]
jmp 0x180003ed9
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x140], 1
lea rcx, [rsp + 0x48]
call fcn.180005700
nop
lea rcx, [rsp + 0x70]
call fcn.180005700
lea rcx, [rsp + 0xc0]
call fcn.1800056b0
nop
lea rcx, [rsp + 0x98]
call fcn.1800056b0
nop
mov rax, qword [rsp + 0x130]
mov r8d, dword [rax + 0x20]
mov rax, qword [rsp + 0x130]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0xc0]
call fcn.1800057e0
mov rax, qword [rsp + 0x130]
add rax, 0xb0
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.180005200
movzx eax, al
test eax, eax
jne 0x180003dc7
lea rcx, [rsp + 0xf0]
call fcn.1800048d0
nop
mov rax, qword [rsp + 0x130]
add rax, 0xb0
lea rdx, [rsp + 0xf0]
mov rcx, rax
call fcn.1800046e0
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0xf0]
call fcn.180004920
nop
lea rcx, [rsp + 0x98]
call fcn.180005700
nop
lea rcx, [rsp + 0xc0]
call fcn.180005700
movzx eax, byte [rsp + 0x33]
jmp 0x180003ed9
lea rcx, [rsp + 0x98]
call fcn.1800058a0
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003e11
mov eax, dword [rsp + 0x44]
cmp rax, 4
je 0x180003e3b
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x98]
call fcn.180005700
nop
lea rcx, [rsp + 0xc0]
call fcn.180005700
movzx eax, byte [rsp + 0x34]
jmp 0x180003ed9
lea rcx, [rsp + 0x98]
call fcn.180005870
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003e7e
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
je 0x180003ea5
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x98]
call fcn.180005700
nop
lea rcx, [rsp + 0xc0]
call fcn.180005700
movzx eax, byte [rsp + 0x35]
jmp 0x180003ed9
mov rax, qword [rsp + 0x130]
mov dword [rax + 0x20], 0
mov byte [rsp + 0x36], 1
lea rcx, [rsp + 0x98]
call fcn.180005700
nop
lea rcx, [rsp + 0xc0]
call fcn.180005700
movzx eax, byte [rsp + 0x36]
add rsp, 0x128
ret