Function at 0x18004bd10
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.18001cf90
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x59]
call fcn.18001b990
nop
cmp qword [rsi + 0x30], r13
jne 0x18004c044
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.18004cb30
nop
cmp qword [rbp - 1], r13
je 0x18004bff7
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.18004ce10
mov r14, rax
mov qword [rbp - 0x41], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x18004bdd6
mov rax, qword [rdi]
mov qword [rbp - 0x41], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x39]
call fcn.18001f260
mov r14, qword [rbp - 0x41]
cmp qword [rbp - 0x39], 0
je 0x18004bfde
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 0x18004be83
cmp rbx, 0xffffffffffffffff
jne 0x18004be8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18004bfbd
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 0x18004be20
cmp rbx, 0xffffffffffffffff
je 0x18004bfbd
test rbx, rbx
je 0x18004bfbd
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x18004beb1
mov rcx, qword [rax]
test rcx, rcx
je 0x18004bead
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.180051d20
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 0x18004bf31
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 0x18004bf6b
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001cf90
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001b990
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.18004d060
nop
lea rcx, [rbp - 0x31]
call fcn.18001b9c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x18004bfde
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bfaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c080
call fcn.1800ef5a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
jmp 0x18004bfde
lea rax, [rbp - 0x41]
cmp rdi, rax
je 0x18004bfde
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x41], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x39]
call fcn.18001f260
nop
lea rcx, [rbp - 0x41]
call fcn.18004ccf0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1800ef5a0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x18004c033
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c02e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c07a
call fcn.1800ef5a0
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
lea rcx, [rbp - 0x59]
call fcn.18001b9c0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800ef540
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.180111064
nop
call fcn.180111064
int3