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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038437
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x90]
mov esi, dword [ebp + 8]
mov edx, 0x10046950
push eax
mov ecx, esi
call fcn.10010bc0
mov edi, dword [ebp - 0x8c]
add esp, 4
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a520
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002c30
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.1000a330
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a586
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002db0
mov byte [ebp - 0x71], 1
jmp 0x1000a596
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002db0
mov byte [ebp - 0x71], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10002db0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x88]
push eax
mov edx, str.AI_SKIP_MSI_ELEVATION
mov ecx, esi
call fcn.10010bc0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
cmp dword [ebp - 0x88], 2
jne 0x1000a5f7
mov eax, dword [ebp - 0x84]
cmp word [eax], 0x31
jne 0x1000a5f7
mov dword [ebp - 0x78], 0
jmp 0x1000aa71
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x80]
mov ecx, dword [ebp + 8]
mov edx, str.MsiRunningElevated
push eax
call fcn.10010bc0
add esp, 4
cmp dword [ebp - 0x80], 2
jne 0x1000a62c
mov eax, dword [ebp - 0x7c]
cmp word [eax], 0x31
je 0x1000a632
cmp byte [ebp - 0x71], 0
je 0x1000a63e
mov dword [ebp - 0x78], 0
jmp 0x1000aa4f
mov esi, dword [ebp + 8]
push 0x10049620
push 0x10049624
push esi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb4]
push eax
mov edx, str._SystemFolder_msiexec.exe
mov ecx, esi
call fcn.10010c60
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0xac]
push eax
mov edx, str.CLIENTPROCESSID
mov ecx, esi
call fcn.10010bc0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xa4]
push eax
mov edx, str.__OriginalDatabase__
mov ecx, esi
call fcn.10010c60
push dword [ebp - 0xa8]
call fcn.1002ab70
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.10005500
mov byte [ebp - 4], 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x58]
add esp, 0xc
push 1
sub esp, 8
mov eax, esp
push ecx
push edx
lea ecx, [ebp - 0x9c]
mov dword [eax], 0x10049488
mov dword [eax + 4], 1
call fcn.10008ed0
mov ecx, dword [ebp - 0xa0]
add esp, 0x18
mov esi, dword [ebp - 0x9c]
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x78], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000a757
sub edx, dword [ebp - 0x78]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0x30]
call fcn.10002c30
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
push eax
lea ecx, [eax + 0x18]
call fcn.100086d0
mov ecx, dword [ebp - 0x98]
add esp, 4
lea ecx, [ecx - 0x18]
call fcn.10002db0
sub dword [ebp - 0x98], 0x18
lea ecx, [ebp - 0x28]
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x10049488
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10002c30
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x70]
call fcn.10009130
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.10002db0
mov ecx, edi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a820
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10002c30
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1000a330
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push 2
push 2
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x1000a878
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.10002db0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.10002db0
cmp dword [ebp - 0x5c], 8
lea edi, [ebp - 0x70]
cmovae edi, dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x3c
mov esi, eax
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.10026360
push 0
lea eax, [ebp - 0xf4]
push 0x3c
push eax
call fcn.1000f2a0
mov eax, dword [ebp - 0xb0]
add esp, 0x18
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf4], 0x3c
mov dword [ebp - 0xec], esi
push eax
mov dword [ebp - 0xf0], 0x500
mov dword [ebp - 0xe8], str.runas
mov dword [ebp - 0xdc], 0x100469b0
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xd8], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x1000a9ac
mov ecx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a944
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002c30
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.1000a330
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.10002db0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a9a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.10002db0
mov dword [ebp - 0x78], 0x642
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.10002db0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
call fcn.100013d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.10002db0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa0]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1000a9f1
push eax
call esi
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x1000aa16
push eax
call esi
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x1000aa3b
push eax
call esi
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1000aa5d
push eax
call esi
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x1000aa7c
push eax
call esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000aa9e
push edi
call esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
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.10024a34
mov esp, ebp
pop ebp
ret 4