Function at 0x1800784b0
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 [0x1802247b8]
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 0x18007850b
mov rcx, qword [rdi]
test rcx, rcx
je 0x18007850b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor r12d, r12d
cmp qword [r15 + 0x30], r12
jne 0x1800787a8
lea rdx, [rbp - 0x11]
mov rcx, r15
call fcn.180079150
nop
cmp qword [rbp - 1], r12
je 0x180078787
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.180079bf0
mov qword [rbp - 0x41], rax
lea rsi, [r15 + 0x10]
lea rcx, [rbp - 0x41]
cmp rcx, rsi
je 0x180078773
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 0x180078773
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 0x180078628
cmp r14, 0xffffffffffffffff
jne 0x180078632
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18007874d
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 0x1800785c0
cmp r14, 0xffffffffffffffff
je 0x18007874d
test r14, r14
je 0x18007874d
test rbx, rbx
je 0x18007865a
mov rcx, qword [rdi]
test rcx, rcx
je 0x18007864e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r12d, r12d
mov ebx, r12d
mov qword [rbp + 0xf], rbx
jmp 0x18007865d
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.180089470
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 0x1800786e0
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 0x180078728
mov qword [rbp - 0x31], rdi
test rdi, rdi
je 0x1800786f8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800786f8
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.18007a030
nop
test rdi, rdi
je 0x180078728
mov rcx, qword [rdi]
test rcx, rcx
je 0x180078724
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 0x180078773
mov rcx, r15
call fcn.180139b7c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
jmp 0x180078773
lea rax, [rbp - 0x41]
xor r12d, r12d
cmp rsi, rax
je 0x180078773
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.180079790
nop
mov rcx, qword [rbp - 0x41]
call fcn.180139b7c
nop
cmp qword [rbp + 7], 8
jb 0x180078797
mov rcx, qword [rbp - 0x11]
call fcn.180139b7c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
test rbx, rbx
je 0x1800787bf
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800787bb
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0xf], r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180139310
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