Function at 0x1800d6d00
Capabilities:
Get file size
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x59], r14
lea ecx, [r14 + 8]
call fcn.18042ce24
mov qword [rbp - 0x29], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x59], rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
mov r9d, 0x40000000
mov r8, rbx
lea rdx, [rbp - 0x59]
call fcn.1800d9050
mov rbx, qword [rbp - 0x59]
test al, al
je 0x1800d6f29
test rbx, rbx
je 0x1800d6dbd
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800d6dbd
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800d6da9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800d6dbd
mov ecx, dword [rbp - 0x29]
shl rcx, 0x20
add rcx, rdi
je 0x1800d6dbd
mov dil, 1
jmp 0x1800d6f2c
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r14
movdqa xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
mov dword [rbp + 0x2f], 0xffffffff
mov rax, qword [rsi + 0x40]
lea rcx, [rbp - 0x19]
cmp qword [rsi + 0x38], rax
jne 0x1800d6e0e
call fcn.1800d5dc0
jmp 0x1800d6e3a
lea rdx, [rsi + 0x38]
call fcn.1800da760
lea rdx, [rsi + 0x50]
lea rcx, [rbp - 1]
call fcn.1800da760
lea rdx, [rsi + 0x68]
lea rcx, [rbp + 0x17]
call fcn.1800da760
mov eax, dword [rsi + 0x80]
mov dword [rbp + 0x2f], eax
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x19]
call fcn.1800d6960
mov dword [rbp - 0x49], r14d
mov rdi, qword [rbp - 0x39]
sub rdi, qword [rbp - 0x41]
test rbx, rbx
jne 0x1800d6e5d
xor dil, dil
jmp 0x1800d6eb7
cmp qword [rbp - 0x41], 0
jne 0x1800d6e69
xor dil, dil
jmp 0x1800d6e9d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x1800d6e77
xor dil, dil
jmp 0x1800d6e9d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, edi
mov rdx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800d6e96
xor dil, dil
jmp 0x1800d6e9d
cmp edi, dword [rbp - 0x49]
sete dil
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800d6eb7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800d6eb7
mov qword [rbx], 0xffffffffffffffff
mov rcx, qword [rbp - 0x39]
sub rcx, qword [rbp - 0x41]
mov eax, dword [rbp - 0x49]
cmp rax, rcx
jne 0x1800d6ed1
test dil, dil
je 0x1800d6ed1
mov dil, 1
jmp 0x1800d6ed4
xor dil, dil
lea rcx, [rbp - 0x19]
call fcn.1800d9170
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1800d6f2c
mov rdx, qword [rbp - 0x31]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d6f16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d6f16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r14
jmp 0x1800d6f2c
xor dil, dil
test rbx, rbx
je 0x1800d6f58
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1800d6f47
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov edx, 8
mov rcx, rbx
call fcn.18042ce14
mov qword [rbp - 0x59], r14
movzx eax, dil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18042cdf0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret