Function at 0x1800a9270
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 [0x180126050]
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.1800a8a50
test al, al
jne 0x1800a92e0
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x1800a9641
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 0x1800a933e
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1800aad30
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.1800aad30
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.1800aad30
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.1800a8490
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x1800a935a
xor bl, bl
jmp 0x1800a9637
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.1800a77d0
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x1800a95ec
mov rcx, rsi
call fcn.180023310
test al, al
je 0x1800a95ec
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 0x1800a95ec
test rdx, rdx
je 0x1800a95ec
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a95ec
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800a95ec
mov ecx, dword [rsp + 0x38]
cmp ebx, ecx
jne 0x1800a95ec
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x1800a95ec
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x1800a95ec
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a95ec
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 0x1800a95ec
cmp dword [rsp + 0x38], 4
jne 0x1800a95ec
cmp rdi, rbx
je 0x1800a94b9
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x1800a95ec
test rdi, rdi
je 0x1800a95ec
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a95ec
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 0x1800a95ec
mov eax, dword [rsp + 0x38]
cmp r14d, eax
jne 0x1800a95ec
sub ebx, edi
cmp eax, ebx
jne 0x1800a95ec
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a95e8
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a95e8
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 0x1800a9505
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a95e8
mov r14d, dword [rbp - 0x79]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a95e8
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a95e8
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 0x1800a9551
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a95e8
mov r15d, dword [rbp - 0x71]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a95e8
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a95e8
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 0x1800a9594
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a95e8
cmp qword [rbp - 0x79], rbx
jne 0x1800a95b1
mov rax, qword [rsi]
test rax, rax
je 0x1800a95e8
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800a95b1
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800a95e8
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a95e8
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 0x1800a95e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x1800a95ee
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1800a9637
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a9626
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a9626
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800bd2d0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r12
lea rcx, [rbp - 0x29]
call fcn.1800a9920
nop
test rdi, rdi
je 0x1800a9689
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800a9675
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a9675
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1800bd2d0
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.1800bd270
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