Function at 0x1401d5a40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r12
push r13
push r14
push r15
mov eax, 0x1358
call fcn.140197c80
sub rsp, rax
movaps xmmword [rsp + 0x1340], xmm6
movaps xmmword [rsp + 0x1330], xmm7
mov rax, qword [0x140279780]
xor rax, rsp
mov qword [rsp + 0x1320], rax
mov r13, r9
mov r15, r8
mov qword [rsp + 0xc0], r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x98], r9
mov rax, qword [rsp + 0x13b0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xa0], rax
mov rbx, qword [rsp + 0x13b8]
mov r12, qword [rsp + 0x13c8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0xa8], r12
lea rdx, [0x14023cd14]
mov rcx, qword [r8]
call fcn.1401ac480
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1401d5b7b
lea rdx, str.can_not_open_file_to_save..
xor r9d, r9d
mov r8, qword [0x1402ab660]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [r15]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d5b30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d5b4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r14, qword [rsp + 0x48]
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d5b72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
jmp 0x1401d5fcc
cmp qword [rsi + 0x1030], 0
jne 0x1401d5ba0
mov rdx, rbx
mov rcx, rsi
call fcn.1401d5648
test eax, eax
jne 0x1401d5ba0
lea rdx, str.init_network_error.
jmp 0x1401d5afc
mov rax, qword [rsp + 0x13c0]
test rax, rax
je 0x1401d5bb4
mov qword [rsi + 0x1040], rax
mov rcx, rsi
call fcn.1401d59ac
mov rcx, qword [r13]
sub rcx, 0x18
call fcn.140003958
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1401d54a0
and qword [rsp + 0x30], 0
mov al, byte [rsi + 0x103c]
neg al
sbb r9d, r9d
and r9d, 0x80000000
add r9d, 2
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r8d, 1
mov rdx, r14
mov rcx, qword [rsi + 0x1030]
call fcn.140029054
mov r14, rax
mov qword [rsp + 0x30], rax
xor ecx, ecx
call fcn.1401adeb8
mov qword [rsp + 0xb8], rax
xorps xmm7, xmm7
movsd qword [rsp + 0xe0], xmm7
and dword [rsp + 0xe8], 0
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0xe0]
call fcn.14000547c
test r14, r14
je 0x1401d6018
xor r12d, r12d
or ebx, 0xffffffff
mov rax, qword [r14]
mov r8d, 0xfff
lea rdx, [rsp + 0x320]
mov rcx, r14
call qword [rax + reloc.msi.dll_MsiRecordGetInteger]
mov r15d, eax
test eax, eax
je 0x1401d5f16
mov edx, r15d
mov r9, qword [rsp + 0x40]
mov r8d, 1
lea rcx, [rsp + 0x320]
call fcn.1401ae254
add r12d, r15d
xor ecx, ecx
call fcn.1401adeb8
mov qword [rsp + 0xb0], rax
movsd qword [rsp + 0xf0], xmm7
and dword [rsp + 0xf8], 0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xf0]
call fcn.14000547c
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xf0]
call fcn.14000527c
movsd xmm0, qword [rsp + 0x110]
comisd xmm7, xmm0
jbe 0x1401d5d15
movsd xmm1, qword [0x1402427e8]
jmp 0x1401d5d1d
movsd xmm1, qword [0x1402427c0]
addsd xmm0, xmm1
mulsd xmm0, qword [0x1402427d8]
cvttsd2si rax, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
comisd xmm1, xmm7
jbe 0x1401d5e6b
mov eax, r12d
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
mulsd xmm6, qword [0x1402427c8]
movaps xmm0, xmm6
divsd xmm0, xmm1
movsd qword [rsi + 0x1090], xmm0
cmp r12d, 0x100000
jae 0x1401d5de7
call fcn.140007bec
mov rcx, rax
test rax, rax
je 0x1401d60c6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
movsd xmm0, qword [rsi + 0x1090]
movsd qword [rsp + 0x20], xmm0
movaps xmm3, xmm6
movq r9, xmm6
mov rax, qword [rsp + 0x38]
mov r8, qword [rax]
lea rdx, str._s..___Read__0.01f_KBytes___0.1f_KB_s_
lea rcx, [rsp + 0x60]
call fcn.1400033ac
mov r15, qword [rsp + 0x60]
lea rcx, [r15 - 0x18]
call fcn.140003958
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8d, r12d
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1401d5318
nop
jmp 0x1401d5ef0
mulsd xmm6, qword [0x1402427c8]
call fcn.140007bec
mov rcx, rax
test rax, rax
je 0x1401d60c6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
movsd xmm0, qword [rsi + 0x1090]
movsd qword [rsp + 0x20], xmm0
movaps xmm3, xmm6
movq r9, xmm6
mov rax, qword [rsp + 0x38]
mov r8, qword [rax]
lea rdx, str._s..___Read__0.01f_MBytes___0.1f_KB_s_
lea rcx, [rsp + 0x70]
call fcn.1400033ac
mov r15, qword [rsp + 0x70]
lea rcx, [r15 - 0x18]
call fcn.140003958
add rax, 0x18
mov qword [rsp + 0x78], rax
mov r8d, r12d
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1401d5318
nop
jmp 0x1401d5ef0
call fcn.140007bec
mov rcx, rax
test rax, rax
je 0x1401d60c6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
mov r9d, r12d
mov rax, qword [rsp + 0x38]
mov r8, qword [rax]
lea rdx, str._s..___Read__d_Bytes
lea rcx, [rsp + 0x80]
call fcn.1400033ac
mov r15, qword [rsp + 0x80]
lea rcx, [r15 - 0x18]
call fcn.140003958
add rax, 0x18
mov qword [rsp + 0x88], rax
mov r8d, r12d
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.1401d5318
mov eax, r12d
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
movsd qword [rsi + 0x1090], xmm0
mov eax, ebx
lock xadd dword [r15 - 8], eax
add eax, ebx
test eax, eax
jg 0x1401d5f0c
mov rcx, qword [r15 - 0x18]
mov rax, qword [rcx]
lea rdx, [r15 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsi + 8], 0
je 0x1401d5c6a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + LoadRegTypeLib]
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
call fcn.1401ad040
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x38]
jmp 0x1401d601b
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d5fe6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x1320]
xor rcx, rsp
call fcn.140197130
lea r11, [rsp + 0x1358]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret
or ebx, 0xffffffff
mov r14, qword [rsp + 0x48]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140003958
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1401d54a0
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d6061
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d6080
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d609e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401d60bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x1401d5fe8
mov ecx, 0x80004005
call fcn.140003930
int3