Function at 0x1800a8ee0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
xor r12d, r12d
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], r12
lea rdx, [rbp - 0x51]
call fcn.1800a86c0
test al, al
jne 0x1800a8f50
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x1800a92b1
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r12
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov dword [rbp + 0x1f], 0xffffffff
add rbx, 0x38
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x1800a8fae
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1800aa9a0
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.1800aa9a0
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.1800aa9a0
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.1800a8100
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x1800a8fca
xor bl, bl
jmp 0x1800a92a7
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], r12
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.1800a7440
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x1800a925c
mov rcx, rsi
call fcn.1800232d0
test al, al
je 0x1800a925c
mov dword [rsp + 0x38], r12d
mov rbx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x69]
sub rbx, rdx
mov rax, qword [rsi]
test rax, rax
je 0x1800a925c
test rdx, rdx
je 0x1800a925c
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a925c
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800a925c
mov ecx, dword [rsp + 0x38]
cmp ebx, ecx
jne 0x1800a925c
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x1800a925c
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x1800a925c
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a925c
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800a925c
cmp dword [rsp + 0x38], 4
jne 0x1800a925c
cmp rdi, rbx
je 0x1800a9129
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x1800a925c
test rdi, rdi
je 0x1800a925c
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a925c
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800a925c
mov eax, dword [rsp + 0x38]
cmp r14d, eax
jne 0x1800a925c
sub ebx, edi
cmp eax, ebx
jne 0x1800a925c
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a9258
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a9258
mov qword [rbp - 0x79], r12
mov r9d, 1
lea r8, [rbp - 0x75]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r14d, eax
mov dword [rbp - 0x79], eax
cmp eax, 0xffffffff
jne 0x1800a9175
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a9258
mov r14d, dword [rbp - 0x79]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a9258
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a9258
mov qword [rbp - 0x71], r12
mov r9d, 1
lea r8, [rbp - 0x6d]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r15d, eax
mov dword [rbp - 0x71], eax
cmp eax, 0xffffffff
jne 0x1800a91c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a9258
mov r15d, dword [rbp - 0x71]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a9258
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a9258
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 0x79], rbx
xor r9d, r9d
lea r8, [rbp - 0x75]
mov edx, r14d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x79], eax
cmp eax, 0xffffffff
jne 0x1800a9204
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a9258
cmp qword [rbp - 0x79], rbx
jne 0x1800a9221
mov rax, qword [rsi]
test rax, rax
je 0x1800a9258
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a9221
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a9258
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a9258
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x71], rax
xor r9d, r9d
lea r8, [rbp - 0x6d]
mov edx, r15d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x71], eax
cmp eax, 0xffffffff
jne 0x1800a9258
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x1800a925e
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1800a92a7
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a9296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a9296
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800baa40
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r12
lea rcx, [rbp - 0x29]
call fcn.1800a9590
nop
test rdi, rdi
je 0x1800a92f9
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800a92e5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a92e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1800baa40
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r12
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret