Function at 0x4090ec
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x24
push ebx
push esi
push edi
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 0xc]
mov esi, 0x42b6a0
test eax, eax
je 0x409329
push 0
push str.UCBrowserSvc
call fcn.00407c95
pop ecx
pop ecx
test al, al
je 0x409329
push 0x433e8c
lea ecx, [ebp - 4]
call fcn.0040820a
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040879d
push esi
mov ecx, eax
call fcn.00407d79
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00407b82
inc bl
je 0x40926d
push 1
push esi
mov ecx, edi
call fcn.0040856d
mov ebx, eax
cmp ebx, 1
jle 0x409259
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.004086cf
push str.____as_current_user
lea eax, [ebp - 8]
push eax
push 0x42b61c
push ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0040879d
push eax
push 0x42b660
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00408add
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408aa0
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408a67
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408aa0
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408a67
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408aa0
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.00408b18
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 8]
jmp 0x4092dc
xor bl, bl
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00407b82
mov al, bl
jmp 0x4094cc
push str.____as_current_user
push edi
push str.____run_
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00408add
add esp, 0xc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408aa0
add esp, 0xc
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408a67
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.00408aa0
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.00408b18
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00407b82
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00407b82
cmp byte [ebp + 0x14], 0
jne 0x409300
mov ebx, str.___hide
push ebx
call fcn.00407d9c
pop ecx
push eax
push ebx
lea ecx, [ebp - 4]
call fcn.004087df
push 1
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00407f92
add esp, 0x10
test eax, eax
jne 0x40931e
mov bl, 1
jmp 0x40925b
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00407b82
push 0x42b5d4
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.00408aa0
add esp, 0xc
push 8
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4094aa
push str.RunNonElevated
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
je 0x40949d
xor eax, eax
cmp byte [ebp + 0x14], al
push 1
setne al
mov ecx, edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040879d
push esi
mov ecx, eax
call fcn.00407d79
mov ecx, dword [ebp - 0x24]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00407b82
inc bl
push 1
mov ecx, edi
je 0x409415
push esi
call fcn.0040856d
mov esi, eax
cmp esi, 1
jle 0x409405
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.004086cf
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [esi + 2]
cmp ecx, eax
jl 0x4093dd
push dword [ebp + 8]
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push eax
jmp 0x409448
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.004086cf
push dword [ebp + 8]
mov esi, dword [ebp - 0x24]
push 0
push esi
push dword [ebp - 8]
push 0
call dword [ebp - 4]
add esp, 0x14
lea ecx, [esi - 0x10]
jmp 0x409478
push dword [ebp + 8]
mov ecx, dword [edi]
xor eax, eax
push eax
push eax
push ecx
push eax
jmp 0x409495
push 0x43048c
call fcn.0040856d
mov ebx, eax
xor esi, esi
cmp ebx, esi
jle 0x40948c
push ebx
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.0040879d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [ebx + 1]
cmp ecx, eax
jl 0x409452
push dword [ebp + 8]
push esi
push esi
push dword [ebp - 8]
push esi
call dword [ebp - 4]
add esp, 0x14
mov ebx, eax
jmp 0x40947f
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004086cf
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
call dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add ecx, 0xfffffff0
mov ebx, eax
call fcn.00407b82
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00407b82
jmp 0x40949d
push dword [ebp + 8]
mov eax, dword [edi]
push esi
push esi
push eax
push esi
call dword [ebp - 4]
mov ebx, eax
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4094bb
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00407f92
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407b82
cmp ebx, 1
sete al
pop edi
pop esi
pop ebx
leave
ret