Function at 0x40d040
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acf95
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404b50
cmp dword [eax + 0x14], 8
jb 0x40d07a
mov eax, dword [eax]
push eax
push ecx
mov edx, 0x4c5cbc
mov ecx, 0x4c5cc0
call fcn.00427680
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.004208e0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0x3c
cmovae eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x98], 0x40
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], str.runas
mov dword [ebp - 0x88], str.__runasinst
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 5
mov dword [ebp - 0x7c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x64]
mov esi, eax
test ecx, ecx
je 0x40d120
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x40d15a
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d150
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3da
push edx
push ecx
call fcn.0044b3bd
add esp, 8
test esi, esi
jne 0x40d3bd
push str.HandleRequestAdministratorPrivilege
push str._s:CmRequestAdministrator___failed
call fcn.00404c50
add esp, 8
mov ecx, str.CSInstallTimeNsUnit
call fcn.0040f8c0
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.00432e30
add esp, 8
mov ecx, str.ChromeSelf.exe
call fcn.00425ca0
mov ecx, str.CSRChrm.exe
call fcn.00425ca0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.0040fcd0
mov edi, eax
call fcn.004147a0
push 1
mov edx, 1
mov esi, eax
call fcn.0040f2e0
push 1
push 0
push 0x1ff0000
mov edx, 1
call fcn.00410570
test esi, esi
jne 0x40d377
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.00409350
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40d218
test ecx, ecx
je 0x40d302
cmp edx, 8
lea eax, [ebp - 0x30]
cmovae eax, ecx
cmp word [eax], 0
je 0x40d302
cmp edx, 8
lea eax, [ebp - 0x30]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d302
lea ecx, [ebp - 0x48]
call fcn.004185d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x30]
push 0
cmovae edx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], 8
cmovae ecx, dword [ebp - 0x30]
push ecx
push 0
push ecx
push 0
push 0
push ecx
call fcn.00416a40
push 0
xor edx, edx
mov esi, eax
lea eax, [ebp - 0x14]
mov ecx, edi
push edx
push edx
push eax
lea eax, [ebp - 0x18]
push eax
test esi, esi
je 0x40d2a0
push 0x208
push edx
push edx
call fcn.00414ff0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d2ae
push 0x209
push 0
push 0
call fcn.00414ff0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40d2ec
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d2e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3df
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
jmp 0x40d322
push 0
push 0
push 0
lea eax, [ebp - 0x14]
xor edx, edx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push 0x1f5
push 0
push 0
call fcn.00414ff0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40d363
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3e4
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
xor edx, edx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push 0xffffffffffffffff
push 0
push 0
call fcn.00414ff0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
xor edx, edx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push 0x207
push 0
push 0
call fcn.00414ff0
push ecx
push 0
push ecx
call fcn.004192f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
call fcn.0047aa50
call fcn.0047aa50
int3