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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042b27
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x10067024]
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, str.ProductCode
push eax
mov ecx, esi
call fcn.10016940
mov edi, dword [ebp - 0x8c]
add esp, 4
mov ecx, edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100101d5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002fd0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10010030
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 0x1001023b
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.10003630
mov byte [ebp - 0x71], 1
jmp 0x1001024b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10003630
mov byte [ebp - 0x71], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003630
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.10016940
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
cmp dword [ebp - 0x88], 2
jne 0x100102ac
mov eax, dword [ebp - 0x84]
cmp word [eax], 0x31
jne 0x100102ac
mov dword [ebp - 0x78], 0
jmp 0x1001073d
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.10016940
add esp, 4
cmp dword [ebp - 0x80], 2
jne 0x100102e1
mov eax, dword [ebp - 0x7c]
cmp word [eax], 0x31
je 0x100102e7
cmp byte [ebp - 0x71], 0
je 0x100102f3
mov dword [ebp - 0x78], 0
jmp 0x1001071b
mov esi, dword [ebp + 8]
push 0x10056584
push 0x10056588
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.100169e0
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.10016940
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.100169e0
push dword [ebp - 0xa8]
call fcn.10033f13
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.1000a8e0
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], 0x100563fc
mov dword [eax + 4], 1
call fcn.1000ea90
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
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10010410
sub edx, dword [ebp - 0x78]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0x30]
call fcn.10002fd0
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
push eax
lea ecx, [eax + 0x18]
call fcn.1000e010
mov ecx, dword [ebp - 0x98]
add esp, 4
lea ecx, [ecx - 0x18]
call fcn.10003630
sub dword [ebp - 0x98], 0x18
lea ecx, [ebp - 0x28]
push 1
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x100563fc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10002fd0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x70]
call fcn.1000ecf0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.10003630
mov ecx, edi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100104e2
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10002fd0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10010030
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 0x1001053a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.10003630
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.10003630
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.1002e160
push 0
lea eax, [ebp - 0xf4]
push 0x3c
push eax
call fcn.10014f40
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], 0x10053794
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 0x10010678
mov ecx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010610
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002fd0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10010030
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.10003630
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 0x1001066c
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.10003630
mov dword [ebp - 0x78], 0x642
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.10003630
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
call fcn.10002980
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.10003630
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa0]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x100106bd
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 0x100106e2
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 0x10010707
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 0x10010729
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 0x10010748
push eax
call esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001076a
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.1002c803
mov esp, ebp
pop ebp
ret 4