Function at 0x14001084c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
cmp dword [0x14002c378], r13d
jne 0x1400108e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov ebp, 0x104
mov r9d, ebp
lea r8, [0x14002da30]
lea edx, [rbp - 0x3d]
mov rcx, qword [rcx]
call fcn.140022498
cmp dword [rsp + 0x40], r13d
jl 0x1400108e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebp
lea r8, [0x14002d820]
lea edx, [rbp - 0x3c]
mov rcx, qword [rbx]
call fcn.140022498
lea r8, [rsp + 0x40]
lea rdx, [0x140003480]
lea rcx, [rsp + 0x60]
call fcn.1400214f4
nop
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, r13
jne 0x140010983
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
mov dword [rsp + 0x40], ebx
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140010cb1
test byte [rcx + 0x1c], 4
je 0x140010cb1
mov edx, 0x10
mov r9d, ebx
lea r8, [0x140002010]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov ebx, dword [rsp + 0x40]
jmp 0x140010cb1
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbx
call fcn.14001038c
mov dword [rsp + 0x40], eax
mov rbx, r13
mov qword [rsp + 0x50], rbx
mov rdi, qword [rsp + 0x58]
cmp eax, r13d
jl 0x140010c90
mov dword [rsp + 0x48], 0x208
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov dword [rsp + 0x40], eax
cmp eax, r13d
jl 0x140010c90
lea rdx, [0x14002da30]
lea rcx, [rsp + 0x50]
call fcn.140011de4
mov dword [rsp + 0x40], eax
cmp eax, r13d
jl 0x140010c8b
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140011de4
mov dword [rsp + 0x40], eax
cmp eax, r13d
jl 0x140010c8b
lea rdx, [0x14002d820]
lea rcx, [rsp + 0x50]
call fcn.140011de4
mov dword [rsp + 0x40], eax
cmp eax, r13d
jl 0x140010c8b
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, r13d
jne 0x140010a53
mov esi, r13d
mov rbx, qword [rsp + 0x50]
jmp 0x140010a87
mov qword [rsp + 0x48], r13
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call sub.OLEAUT32.dll_VarBstrCmp
mov esi, eax
cmp eax, r13d
jl 0x140010a87
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], esi
cmp esi, r13d
jl 0x140010c90
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, eax
mov r8, rbx
mov edx, 0x80
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
cmp esi, r13d
jle 0x140010c3e
mov rcx, rsi
call fcn.140024876
mov rbp, rax
cmp rax, r13
jbe 0x140010c00
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
mov r9d, eax
mov r8, rbx
mov edx, 0x80
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r13d
jle 0x140010ba8
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r13d
je 0x140010b4f
cmp esi, dword [rsp + 0x48]
je 0x140010bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
cmp eax, r13d
cmovle r9d, eax
mov eax, 0x80004005
cmp r9d, r13d
cmovge r9d, eax
mov dword [rsp + 0x40], r9d
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140010bf3
test byte [rcx + 0x1c], 4
je 0x140010bf3
mov edx, 0x11
lea r8, [0x140002010]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
jmp 0x140010bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
cmp eax, r13d
cmovle r9d, eax
mov dword [rsp + 0x40], r9d
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140010bf3
test byte [rcx + 0x1c], 4
je 0x140010bf3
mov edx, 0x12
lea r8, [0x140002010]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov rcx, rbp
call fcn.140024806
jmp 0x140010c90
mov dword [rsp + 0x40], 0x8007000e
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140010c90
test byte [rcx + 0x1c], 4
je 0x140010c90
mov edx, 0x13
mov r9d, 0x8007000e
lea r8, [0x140002010]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
jmp 0x140010c90
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
cmp eax, r13d
cmovle r9d, eax
mov dword [rsp + 0x40], r9d
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140010c90
test byte [rcx + 0x1c], 4
je 0x140010c90
mov edx, 0x14
lea r8, [0x140002010]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
jmp 0x140010c90
mov rbx, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140021548
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret