Function at 0x18003a0c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
xor r12d, r12d
lea rcx, [rbp - 0x39]
call fcn.18001cb20
lea rdx, [rbx + 8]
lea rcx, [rbp - 0x39]
call fcn.1800038d0
nop
cmp qword [rbx + 0x30], r12
jne 0x18003a41b
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.18003aea0
nop
lea rcx, [rbp + 7]
call fcn.180005c00
test al, al
jne 0x18003a411
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
xor r8d, r8d
xor edx, edx
call fcn.18003b310
mov qword [rbp - 0x51], rax
lea rsi, [rbx + 0x10]
lea rax, [rbp - 0x51]
cmp rax, rsi
je 0x18003a18d
mov rdx, rsi
lea rcx, [rbp - 0x51]
call fcn.180003810
mov rcx, qword [rbp - 0x51]
mov rax, qword [rsi]
mov qword [rbp - 0x51], rax
mov qword [rsi], rcx
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x49]
call fcn.18001c6c0
cmp qword [rbp - 0x49], 0
je 0x18003a3f8
lea rcx, [rbp + 7]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r14, r12
cmp byte [rbx], 0
jne 0x18003a231
cmp rdi, 0xffffffffffffffff
jne 0x18003a23b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18003a3c7
lea ecx, [rdi + 0x33]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 7]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
inc r14
cmp r14, 0xa
jb 0x18003a1d0
cmp rdi, 0xffffffffffffffff
je 0x18003a3c7
test rdi, rdi
je 0x18003a3c7
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x18003a25f
mov rcx, qword [rax]
test rcx, rcx
je 0x18003a25b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], r12
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x51]
call fcn.18003f8f0
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], r12
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbp - 0x31]
mov rax, qword [rbp - 0x29]
cmp rdx, rax
je 0x18003a2e3
mov dword [rbp - 0x41], r12d
sub rax, rdx
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x41]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18003a367
lea rcx, [rbp - 1]
call fcn.18001cb20
lea rdx, [rbx + 8]
lea rcx, [rbp - 1]
call fcn.1800038d0
nop
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rbp - 0x41], rcx
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.180003810
mov rbx, qword [rbp - 0x41]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x79]
call fcn.180003810
mov rax, qword [rbp - 0x51]
mov rcx, qword [rax]
mov qword [rbp - 0x71], rcx
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x71]
call fcn.180003810
mov rax, qword [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x71]
mov r8, rbx
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.18003b3a0
nop
lea rcx, [rbp - 1]
call fcn.180003920
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x19]
call fcn.180003800
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x18003a39b
mov rdx, qword [rbp - 9]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
lea rcx, [rbp - 0x31]
call fcn.180003800
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x18003a3f8
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r12
jmp 0x18003a3f8
lea rax, [rbp - 0x51]
cmp rsi, rax
je 0x18003a3f8
lea rdx, [rbp - 0x51]
mov rcx, rsi
call fcn.180003810
mov rcx, qword [rsi]
mov rax, qword [rbp - 0x51]
mov qword [rsi], rax
mov qword [rbp - 0x51], rcx
lea rcx, [rsi + 8]
lea rdx, [rbp - 0x49]
call fcn.18001c6c0
nop
lea rcx, [rbp - 0x51]
call fcn.18003b0b0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x51]
call fcn.180005040
nop
lea rcx, [rbp + 7]
call fcn.180003b80
nop
lea rcx, [rbp - 0x39]
call fcn.180003920
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret