Function at 0x140013270
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa00]
sub rsp, 0xb00
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb50], rbx
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400132e1
xor r13d, r13d
mov qword [rbp - 0x50], r13
mov rdx, qword [rcx]
lea rcx, [rbp - 0x50]
call fcn.140004970
nop
mov rax, qword [rdi]
cmp byte [rax + 0x80], r13b
jne 0x1400132e8
lea rcx, [rbp - 0x50]
call fcn.1400049a0
xor al, al
jmp 0x14001364d
mov dword [rbp - 0x48], 8
mov dword [rbp - 0x44], 0xff
lea rcx, str.COMCTL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.InitCommonControlsEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001331e
lea rcx, [rbp - 0x48]
call rax
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x14003eb38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140013498
mov rdx, qword [rdi]
lea rcx, [rdx + 0xa8]
call fcn.140002a60
test al, al
jne 0x140013498
lea rcx, [rdx + 0x88]
call fcn.140002a60
test al, al
jne 0x140013498
add rdx, 0xa8
lea rcx, [rbp - 0x40]
call fcn.140002d24
nop
lea rcx, [0x14003eb30]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002de0
mov rbx, rax
mov rax, qword [rax + 0x10]
mov r8, qword [rbx + 0x18]
mov rcx, r8
sub rcx, rax
cmp rdx, rcx
ja 0x1400133ee
lea r15, [rax + rdx]
mov qword [rbx + 0x10], r15
mov r14, rbx
cmp r8, 8
jb 0x1400133c5
mov r14, qword [rbx]
lea rcx, [r14 + rax*2]
mov r8, rdx
lea rdx, [0x14003eb30]
call fcn.140002fe4
mov word [rsp + 0x30], r13w
lea rcx, [r14 + r15*2]
lea rdx, [rsp + 0x30]
call fcn.140002fdc
jmp 0x140013403
mov qword [rsp + 0x20], rdx
lea r9, [0x14003eb30]
lea rcx, [rbp - 0x40]
call fcn.140003410
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r8, qword [rbx + 0x10]
mov r9, qword [rbx + 0x18]
mov rcx, r9
sub rcx, r8
cmp rax, rcx
ja 0x140013454
lea r14, [r8 + rax]
mov qword [rbx + 0x10], r14
cmp r9, 8
jb 0x14001342f
mov rbx, qword [rbx]
lea rcx, [rbx + r8*2]
mov r8, rax
mov rdx, rsi
call fcn.140002fe4
mov word [rsp + 0x30], r13w
lea rcx, [rbx + r14*2]
lea rdx, [rsp + 0x30]
call fcn.140002fdc
jmp 0x140013468
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003410
mov rcx, qword [rdi]
add rcx, 0x88
call fcn.140002a6c
mov r8, rax
lea rcx, [rbp - 0x40]
call fcn.140002a6c
mov rdx, rax
xor r9d, r9d
xor ecx, ecx
call r12
nop
lea rcx, [rbp - 0x40]
call fcn.140002b70
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rdi]
lea rcx, [r9 + 0xc8]
call fcn.140002a6c
mov r8d, 0x103
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x20]
sub rax, rcx
nop dword [rax]
lea rcx, [r8 + 0x7ffffefb]
test rcx, rcx
je 0x1400134f2
movzx ecx, word [rax + rdx]
test cx, cx
je 0x1400134f2
mov word [rdx], cx
add rdx, 2
sub r8, 1
jne 0x1400134d0
lea rax, [rdx - 2]
test r8, r8
cmovne rax, rdx
mov word [rax], r13w
cmp word [rbp - 0x20], 0
je 0x140013642
cmp byte [r9 + 0xe8], 0
je 0x140013529
lea rcx, [rbp - 0x20]
call fcn.1400176f0
mov word [rbp - 0x20], r13w
jmp 0x140013642
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1f0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3fe
lea rdx, [rbp + 0x1f0]
lea rcx, str._programfiles_Internet_Exploreriexplore.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fd
ja 0x140013576
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013576
test al, 0x10
je 0x1400135bb
mov r8d, 0x3fe
lea rdx, [rbp + 0x1f0]
lea rcx, str._programfiles_x86__Internet_Exploreriexplore.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fd
ja 0x140013642
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013642
test al, 0x10
jne 0x140013642
xor eax, eax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov dword [rbp - 0x5c], eax
mov qword [rsp + 0x40], 0x70
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], 1
mov qword [rbp - 0x58], r13
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140013642
lea rdx, str.ShellExecuteExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013642
lea rcx, [rsp + 0x40]
call rax
nop
lea rcx, [rbp - 0x50]
call fcn.1400049a0
mov al, 1
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0xb50]
add rsp, 0xb00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret