Function at 0x18004b7f0
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 [0x1801b8080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r13d, r13d
lea edx, [r13 + 8]
lea rcx, [rbp - 0x59]
call fcn.18001cd30
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x59]
call fcn.18001b730
nop
cmp qword [rsi + 0x30], r13
jne 0x18004bb24
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.18004c610
nop
cmp qword [rbp - 1], r13
je 0x18004bad7
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.18004c8f0
mov r14, rax
mov qword [rbp - 0x41], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x18004b8b6
mov rax, qword [rdi]
mov qword [rbp - 0x41], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x39]
call fcn.18001f000
mov r14, qword [rbp - 0x41]
cmp qword [rbp - 0x39], 0
je 0x18004babe
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 0x18004b963
cmp rbx, 0xffffffffffffffff
jne 0x18004b96d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18004ba9d
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 0x18004b900
cmp rbx, 0xffffffffffffffff
je 0x18004ba9d
test rbx, rbx
je 0x18004ba9d
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x18004b991
mov rcx, qword [rax]
test rcx, rcx
je 0x18004b98d
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.180051800
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 0x18004ba11
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 0x18004ba4b
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001cd30
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001b730
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.18004cb40
nop
lea rcx, [rbp - 0x31]
call fcn.18001b760
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x18004babe
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ba8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004bb60
call fcn.1800ece80
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
jmp 0x18004babe
lea rax, [rbp - 0x41]
cmp rdi, rax
je 0x18004babe
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x41], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x39]
call fcn.18001f000
nop
lea rcx, [rbp - 0x41]
call fcn.18004c7d0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1800ece80
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x18004bb13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bb0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004bb5a
call fcn.1800ece80
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
lea rcx, [rbp - 0x59]
call fcn.18001b760
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800ece20
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.18010e944
nop
call fcn.18010e944
int3