Function at 0x18002e3d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800fb008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
lea rdi, [rcx + 8]
mov rbx, rdi
mov qword [rbp + 0xf], rbx
test rdi, rdi
je 0x18002e42b
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002e42b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor r12d, r12d
cmp qword [r15 + 0x30], r12
jne 0x18002e6c8
lea rdx, [rbp - 0x11]
mov rcx, r15
call fcn.18002f060
nop
cmp qword [rbp - 1], r12
je 0x18002e6a7
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
xor r8d, r8d
xor edx, edx
call fcn.18002f6c0
mov qword [rbp - 0x41], rax
lea rsi, [r15 + 0x10]
lea rcx, [rbp - 0x41]
cmp rcx, rsi
je 0x18002e693
mov rcx, qword [rsi]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x41], rcx
mov qword [rsi], rax
mov r13, qword [rsi + 8]
mov qword [rbp - 0x39], r13
mov qword [rsi + 8], r12
test r13, r13
je 0x18002e693
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
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 r14, rax
nop word [rax + rax]
cmp byte [r15], 0
jne 0x18002e548
cmp r14, 0xffffffffffffffff
jne 0x18002e552
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18002e66d
lea ecx, [rax + 0x12]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], 0
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 r14, rax
inc r12
cmp r12, 0xa
jb 0x18002e4e0
cmp r14, 0xffffffffffffffff
je 0x18002e66d
test r14, r14
je 0x18002e66d
test rbx, rbx
je 0x18002e57a
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002e56e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r12d, r12d
mov ebx, r12d
mov qword [rbp + 0xf], rbx
jmp 0x18002e57d
xor r12d, r12d
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.18003ad20
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r12
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r15, qword [rbp - 0x29]
mov rax, qword [rbp - 0x21]
cmp r15, rax
je 0x18002e600
mov dword [rbp - 0x31], r12d
sub rax, r15
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x31]
mov r8d, eax
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002e648
mov qword [rbp - 0x31], rdi
test rdi, rdi
je 0x18002e618
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002e618
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, qword [rsi]
mov rdx, qword [rdx]
mov r9, qword [rbp - 0x41]
mov r8, qword [r9]
mov rax, qword [rsi]
mov rcx, rsi
call fcn.18002f830
nop
test rdi, rdi
je 0x18002e648
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002e644
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x31], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r15, r15
je 0x18002e693
mov rcx, r15
call fcn.18008861c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
jmp 0x18002e693
lea rax, [rbp - 0x41]
xor r12d, r12d
cmp rsi, rax
je 0x18002e693
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x31]
mov qword [rsi], rcx
mov qword [rbp - 0x41], rax
mov rax, qword [rsi + 8]
mov qword [rsi + 8], r13
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x41]
call fcn.18002f550
nop
mov rcx, qword [rbp - 0x41]
call fcn.18008861c
nop
cmp qword [rbp + 7], 8
jb 0x18002e6b7
mov rcx, qword [rbp - 0x11]
call fcn.18008861c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
test rbx, rbx
je 0x18002e6df
mov rcx, qword [rbx]
test rcx, rcx
je 0x18002e6db
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0xf], r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180087ea0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret