Function at 0x140011640
Capabilities:
Check if file exists
Get common file path
Get file attributes
Load windows common language runtime
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2070]
mov eax, 0x2170
call fcn.14002f0c0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x21a0], rbx
mov qword [rsp + 0x21a8], rsi
mov qword [rsp + 0x21b0], rdi
mov rax, qword [0x14009f088]
xor rax, rsp
mov qword [rbp + 0x2060], rax
xor esi, esi
mov rcx, qword [0x1400a4410]
test rcx, rcx
jne 0x140011788
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
lea rdx, [0x14008a488]
lea rcx, [0x14008a478]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400a4410]
test eax, eax
js 0x14001173e
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [0x14008a468]
lea rdx, [0x140089d78]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x14001172f
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r9, rdi
lea r8, [0x1400867a0]
lea rdx, [0x1400867b0]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140011724
mov rcx, qword [0x1400a4410]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140011781
mov rcx, qword [0x1400a4410]
test rcx, rcx
jne 0x140011788
mov qword [rsp + 0x20], rdi
lea r9, [0x1400867a0]
lea r8, [0x1400867b0]
xor edx, edx
lea rcx, [0x140089d90]
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x1400119bf
mov rcx, qword [0x1400a4410]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [0x1400a4410]
xor dil, dil
mov qword [rsp + 0x50], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x68]
test eax, eax
js 0x140011f27
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140011f7c
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x14008a458]
call qword [rax]
test eax, eax
js 0x140011f16
mov qword [rsp + 0x60], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [0x140089d6c]
mov ecx, 0x65
call fcn.140010fc0
mov rax, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
sub rax, r13
mov qword [rsp + 0x58], rax
je 0x140011edf
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x60]
call fcn.14004cd60
lea rdx, [rbp + 0x60]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140011edf
movdqa xmm0, xmmword [0x14008c810]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
mov r8d, 0x11
lea rdx, [0x14008a408]
lea rcx, [rbp - 0x20]
call fcn.1400020e0
nop
lea rax, [rbp + 0x60]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140011870
lea r8, [rbp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140005910
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400118ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400118e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f87
call fcn.14002e8b4
movdqa xmm0, xmmword [0x14008c810]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov r8d, 1
lea rdx, [0x140089d68]
lea rcx, [rbp - 0x60]
call fcn.1400020e0
nop
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov r8d, 2
lea rdx, [0x14008a42c]
lea rcx, [rbp - 0x40]
call fcn.1400020e0
nop
mov rbx, rsi
mov r15, qword [rbp - 0x28]
mov r14, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x50]
lea r9, [rbp - 0x40]
cmp r15, 8
cmovae r9, rsi
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, qword [rbp - 0x70]
call fcn.140002620
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400119df
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], rdi
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140015860
mov rdi, qword [rbp - 0x50]
add rbx, rdi
jmp 0x140011960
xor r9d, r9d
lea r8, [0x140089da8]
lea rdx, [0x140089dc0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140011f3b
cmp r15, 8
jb 0x140011a1b
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140011a12
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f8d
mov rcx, rsi
call fcn.14002e8b4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140011a5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011a56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f93
call fcn.14002e8b4
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011dee
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.1400102e0
nop
mov r12d, esi
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400020e0
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
mov r8d, 4
lea rdx, [0x14008a438]
lea rcx, [rbp]
call fcn.1400020e0
nop
mov edx, r12d
lea rcx, [rbp + 0x40]
call fcn.140011fe0
nop
mov r9d, 1
lea r8, [0x14008a444]
mov rcx, rax
call fcn.140005910
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140011b83
lea rdi, [rcx + 4]
mov qword [rbp - 0x50], rdi
lea rbx, [rbp - 0x60]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x60]
lea rcx, [rbx + rcx*2]
mov r8d, 8
lea rdx, [0x14008a438]
call fcn.14004cf20
mov word [rbx + rdi*2], si
lea rax, [rbp - 0x60]
jmp 0x140011ba1
mov qword [rsp + 0x20], 4
lea r9, [0x14008a438]
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.140002fb0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rbx, rsi
mov r15, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x10]
mov r14, qword [rbp]
mov rdi, qword [rbp - 0x30]
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp]
cmp r15, 8
cmovae r9, r14
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov rdx, qword [rbp - 0x70]
call fcn.140002620
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011c3f
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140015860
mov rdi, qword [rbp - 0x30]
add rbx, rdi
jmp 0x140011be0
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140011c80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011c7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f9f
call fcn.14002e8b4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140011cc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011cbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011fa5
call fcn.14002e8b4
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140011d12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011fab
call fcn.14002e8b4
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], si
cmp r15, 8
jb 0x140011d5d
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140011d55
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011fb1
mov rcx, r14
call fcn.14002e8b4
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011da8
inc r12d
cmp r12d, 0x32
jl 0x140011ab0
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140011de8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011de3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f99
call fcn.14002e8b4
cmp rbx, 0xffffffffffffffff
je 0x140011e16
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011e9b
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x140011e82
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140011e82
mov rbx, rsi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011fb7
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
test eax, eax
setns dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140011e9e
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140011f71
jmp 0x140011e4b
xor dil, dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140011edf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011ed9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011fc2
call fcn.14002e8b4
nop
test r13, r13
je 0x140011f16
mov rdx, qword [rsp + 0x70]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140011f0d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011f6b
mov rcx, r13
call fcn.14002e8b4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011f27
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140011f37
mov rdx, qword [rcx]
call qword [rdx + 0x10]
movzx eax, dil
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.14002e890
lea r11, [rsp + 0x2170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14004fe44
nop
mov ecx, 0x8007000e
call fcn.1400113c0
nop
mov ecx, 0x80004003
call fcn.14002bcc0
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
int3
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
mov ecx, 0x80004003
call fcn.14002bcc0
nop
call fcn.14004fe44
int3