Function at 0x140026f5c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14006d010]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r14, r9
mov rsi, r8
mov rbx, rdx
lea rdx, str.:Zone.Identifier
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000cd18
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002729a
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
lea r12d, [r15 + 0xf]
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x48], r15b
lea r9, str._ZoneTransfer__r_nZoneId3_r_n
lea edx, [r15 + 0x1a]
lea rcx, [rsp + 0x48]
call fcn.14000de14
nop
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x78], reloc.SHLWAPI.dll_SHCreateMemStream
movsd xmm0, qword [str.ReferrerUrl]
movsd qword [rsp + 0x68], xmm0
mov eax, dword [0x14004bb90]
mov dword [rsp + 0x70], eax
mov byte [rsp + 0x74], r15b
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x68], 8
movabs rax, 0x3d6c725574736f48
mov qword [rbp - 0x78], rax
mov byte [rbp - 0x70], r15b
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400277fc
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.1400277fc
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
sub rax, rcx
lea ebx, [r15 + 2]
mov r14d, 0xa0d
cmp rax, rbx
jb 0x1400270e7
lea rax, [rcx + 2]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx], r14w
mov byte [rax + rcx + 2], r15b
jmp 0x140027100
mov qword [rsp + 0x20], rbx
lea r9, [0x14004bb80]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140027e98
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x48]
call fcn.1400277fc
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400277fc
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
sub rax, rcx
cmp rax, rbx
jb 0x140027153
lea rax, [rcx + 2]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx], r14w
mov byte [rax + rcx + 2], r15b
jmp 0x14002716c
mov qword [rsp + 0x20], rbx
lea r9, [0x14004bb80]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140027e98
mov dword [rsp + 0x40], r15d
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400271c5
test esi, esi
je 0x1400271c5
mov eax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x58]
mov bl, 1
je 0x1400271c8
mov bl, r15b
mov edi, 0x1000
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140027207
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, rdi
jb 0x140027202
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027202
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e6e8
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r12
mov byte [rbp - 0x78], r15b
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14002724e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, rdi
jb 0x140027249
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027249
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e6e8
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r12
mov byte [rsp + 0x68], r15b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400272a3
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, rdi
jb 0x140027293
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027293
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e6e8
jmp 0x1400272a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, r15b
lea rcx, [rbp - 0x58]
call fcn.14000ccb4
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov al, bl
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.14003e1d0
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret