Function at 0x491790
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov eax, 1
mov edx, 2
mov rbx, qword [rcx]
movdqu xmm0, xmmword [rcx + 0x18]
movdqu xmm1, xmmword [rcx + 0x28]
movdqu xmm2, xmmword [rcx + 0x38]
mov rsi, qword [rcx + 0x10]
mov ebp, dword [rcx + 0x18]
mov edi, dword [rcx + 0x1c]
mov r12, rcx
mov ecx, dword [rbx + 0x44]
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm1
shl rax, cl
movups xmmword [rsp + 0x100], xmm2
mov rcx, rax
call fcn.0058aff0
mov rcx, rsi
mov r15, rax
call sub.msvcrt.dll_malloc
mov rdx, 0xffffffffffffffff
mov r13, rax
lea rax, [rsp + 0xc0]
mov rcx, rax
mov qword [rsp + 0x60], rax
call fcn.00487ef0
mov ecx, dword [rbx + 0x44]
mov r8d, 4
shl r8, cl
mov rcx, r8
mov qword [rsp + 0x68], r8
call sub.msvcrt.dll_malloc
test r15, r15
sete dl
test r13, r13
mov r14, rax
sete al
or dl, al
jne 0x491a9a
test r14, r14
mov r8, qword [rsp + 0x68]
je 0x491a9a
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x30], r15
mov rcx, rbx
mov r9, rsi
mov dword [rsp + 0x28], edi
mov r8, r13
mov rdx, r14
mov dword [rsp + 0x20], ebp
call fcn.00491240
mov r8, qword [rbx + 0x20]
mov edx, dword [rbx + 0x48]
movabs r9, 0x28f5c28f5c28f5c3
mov rcx, rax
mov r11, qword [rbx + 8]
mov r10, qword [rbx]
mov dword [rsp + 0xe0], ebp
imul rdx, r8
mov dword [rsp + 0xe4], edi
movdqu xmm3, xmmword [rsp + 0xf0]
movdqu xmm2, xmmword [rsp + 0xe0]
movdqu xmm4, xmmword [rsp + 0x100]
shr rdx, 2
mov rax, rdx
mul r9
mov r9, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x50], r11
lea rbx, [rsp + 0x90]
mov qword [rsp + 0x38], r8
mov r8, rsi
mov qword [rsp + 0x40], r9
mov r9, rsi
shr rdx, 2
mov qword [rsp + 0x28], rax
sub r9, rcx
mov qword [rsp + 0x68], rdx
mov r11d, dword [rsp + 0x68]
lea rdx, [r13 + rcx]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x58], 0xffffffffffffffff
movups xmmword [rsp + 0x90], xmm2
movups xmmword [rsp + 0xa0], xmm3
movups xmmword [rsp + 0xb0], xmm4
call fcn.00487f40
mov rax, qword [rsp + 0xd0]
mov rcx, rbx
movdqu xmm5, xmmword [rsp + 0xc0]
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x90], xmm5
call fcn.00487f10
test eax, eax
jne 0x491a50
mov rcx, r13
lea r13, [rsp + 0x70]
call fcn.0058af90
mov rcx, qword [r12 + 8]
mov r8, r13
mov rdx, rbx
movdqu xmm4, xmmword [rsp + 0xf0]
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0xe0], ebp
movdqu xmm5, xmmword [rsp + 0x100]
mov dword [rsp + 0xe4], edi
movdqu xmm0, xmmword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
movdqu xmm3, xmmword [rsp + 0xe0]
movups xmmword [rsp + 0xa0], xmm4
movups xmmword [rsp + 0xb0], xmm5
movups xmmword [rsp + 0x90], xmm3
movups xmmword [rsp + 0x70], xmm0
call fcn.00487e40
mov rcx, r12
call fcn.0058af90
mov rcx, r15
call fcn.0058af90
mov rax, qword [rsp + 0xd0]
mov rcx, r13
movdqu xmm1, xmmword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
movups xmmword [rsp + 0x70], xmm1
call fcn.00487f30
mov rcx, r14
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0058af90
mov eax, dword [0x0058c020]
test eax, eax
jle 0x491981
mov rsi, qword [fcn.0058b090]
mov ecx, 2
call rsi
mov r8d, 0x1c
mov edx, 1
lea rcx, str.Failed_to_select_dictionary_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rcx, rax
call sub.msvcrt.dll_fflush
jmp 0x491981
cmp dword [0x0058c020], 0
jle 0x491ada
mov rbx, qword [fcn.0058b090]
mov ecx, 2
call rbx
mov r8d, 0x2a
mov edx, 1
lea rcx, str.Failed_to_allocate_buffers:_out_of_memory_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
lea rbx, [rsp + 0x90]
jmp 0x491981