Function at 0x18004bbe0
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, 0xd0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801bc080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r13d, r13d
lea edx, [r13 + 8]
lea rcx, [rbp - 0x59]
call fcn.18001ce60
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x59]
call fcn.18001b860
nop
cmp qword [rsi + 0x30], r13
jne 0x18004bf14
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.18004ca00
nop
cmp qword [rbp - 1], r13
je 0x18004bec7
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
xor r8d, r8d
xor edx, edx
call fcn.18004cce0
mov r14, rax
mov qword [rbp - 0x41], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x18004bca6
mov rax, qword [rdi]
mov qword [rbp - 0x41], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x39]
call fcn.18001f130
mov r14, qword [rbp - 0x41]
cmp qword [rbp - 0x39], 0
je 0x18004beae
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], r13
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 rbx, rax
mov r15, r13
nop dword [rax + rax]
cmp byte [rsi], 0
jne 0x18004bd53
cmp rbx, 0xffffffffffffffff
jne 0x18004bd5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18004be8d
lea ecx, [rbx + 0x33]
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], r13
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 rbx, rax
inc r15
cmp r15, 0xa
jb 0x18004bcf0
cmp rbx, 0xffffffffffffffff
je 0x18004be8d
test rbx, rbx
je 0x18004be8d
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x18004bd81
mov rcx, qword [rax]
test rcx, rcx
je 0x18004bd7d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x59], r13
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.180051bf0
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r13
mov qword [rbp + 0x1f], r13
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbp - 0x29]
mov rax, qword [rbp - 0x21]
cmp rdx, rax
je 0x18004be01
mov dword [rbp - 0x31], r13d
sub rax, rdx
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x31]
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18004be3b
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001ce60
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001b860
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.18004cf30
nop
lea rcx, [rbp - 0x31]
call fcn.18001b890
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x18004beae
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004be7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004bf50
call fcn.1800ef470
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
jmp 0x18004beae
lea rax, [rbp - 0x41]
cmp rdi, rax
je 0x18004beae
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x41], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x39]
call fcn.18001f130
nop
lea rcx, [rbp - 0x41]
call fcn.18004cbc0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1800ef470
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x18004bf03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004befe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004bf4a
call fcn.1800ef470
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
lea rcx, [rbp - 0x59]
call fcn.18001b890
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800ef410
lea r11, [rsp + 0xd0]
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
call fcn.180110f34
nop
call fcn.180110f34
int3