Function at 0x1007f720
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017353f
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.100acf60
mov eax, dword [0x101d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x113c], eax
test eax, eax
je 0x1007fcfb
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
xor ebx, ebx
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1134], ebx
test eax, eax
jle 0x1007fcf6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
push 0xc38
lea eax, [ebp - 0x1108]
push 0
push eax
call fcn.10112750
mov eax, dword [edi]
lea ecx, [ebp - 0x1108]
add esp, 0xc
push ecx
push ebx
push edi
call dword [eax + 0x34]
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push dword [ebp - 0x113c]
push 0x104
push eax
call fcn.1013e22d
add esp, 0x1c
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x1007f822
push str.file__s__is_not_exist
call fcn.10077cb0
add esp, 8
jmp 0x1007fce3
push str.CallOtherProgram__s
call fcn.10077cb0
add esp, 8
lea eax, [ebp - 0x6e0]
push 0x10186a64
push eax
call esi
test eax, eax
je 0x1007f859
lea eax, [ebp - 0x6e0]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100a64f0
add esp, 8
jmp 0x1007f868
lea eax, [ebp - 0x218]
push eax
call fcn.100a6880
add esp, 4
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x1007f88c
lea eax, [ebp - 0x6e0]
push eax
push str.check_sign_fail__signType__s___filepath__s_
call fcn.10077cb0
add esp, 0xc
jmp 0x1007fce3
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x110c]
call fcn.1000e0d0
push 0x1018763c
lea eax, [ebp - 0xf00]
mov dword [ebp - 4], 0
push eax
call esi
test eax, eax
jne 0x1007f8f7
mov eax, dword [ebp - 0x4d8]
cmp eax, 0xc350
ja 0x1007f8c8
test eax, eax
jne 0x1007f8d3
mov eax, 0xc350
mov dword [ebp - 0x4d8], eax
push eax
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x8e8]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10037330
add esp, 0x14
jmp 0x1007fcbe
push 0x10197fe8
lea eax, [ebp - 0xf00]
push eax
call esi
test eax, eax
jne 0x1007fcbe
push str.HpSvc.dll
push dword [ebp - 0x110c]
call fcn.1013da92
add esp, 8
test eax, eax
jne 0x1007f9a1
cmp byte [edi + 0x60], al
jne 0x1007f9a1
push str.start_inst
lea ecx, [ebp - 0x1118]
call fcn.1000e0d0
push 0x10198004
lea ecx, [ebp - 0x1114]
mov byte [ebp - 4], 1
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x1138], esp
mov dword [eax + 0x24], 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1114]
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10030e40
lea ecx, [ebp - 0x1114]
call fcn.1000acb0
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 0
call fcn.1000acb0
push str.HpSvc.dll
push dword [ebp - 0x110c]
call fcn.1013da92
add esp, 8
test eax, eax
jne 0x1007f9d5
cmp byte [edi + 0x60], al
jne 0x1007fa22
lea eax, [ebp - 0xcf8]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.10036900
mov byte [ebp - 4], 4
jmp 0x1007f9eb
lea eax, [ebp - 0xcf8]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.10036900
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0xaf0]
push ecx
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call fcn.10037280
mov eax, dword [ebp - 0x4d0]
lea ecx, [ebp - 0x4cc]
add esp, 0x10
mov byte [ebp - 4], 0
cmp eax, ecx
je 0x1007fa22
push eax
call fcn.1012fd0c
add esp, 4
push str.HpSvc.dll
push dword [ebp - 0x110c]
call fcn.1013da92
add esp, 8
test eax, eax
jne 0x1007fcbe
cmp byte [edi + 0x60], al
jne 0x1007fcbe
lea eax, [ebp - 0x44c]
xor esi, esi
push eax
push str.HpSvc
call fcn.1000e670
add esp, 8
lea ecx, [ebp - 0x1110]
test eax, eax
cmovns esi, dword [ebp - 0x448]
call fcn.1000abd0
push esi
lea eax, [ebp - 0x1110]
mov byte [ebp - 4], 6
push str.status__lu
push eax
call fcn.1000b130
add esp, 0xc
lea ecx, [ebp - 0x111c]
push 0x10198004
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x1138], esp
mov dword [eax + 0x24], 0
push 0
push 0
lea eax, [ebp - 0x1110]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x111c]
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10030e40
lea ecx, [ebp - 0x111c]
mov byte [ebp - 4], 6
call fcn.1000acb0
push str.HpSvc
lea ecx, [ebp - 0x1130]
call fcn.1000e0d0
push 0x200
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.10112750
lea eax, [ebp - 0x430]
push 0x1d
push eax
call fcn.10038cd0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x1007fb22
mov eax, dword [eax]
push dword [ebp - 0x1130]
push eax
lea eax, [ebp - 0x418]
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0x41c]
add esp, 0x10
cmp edx, 8
jb 0x1007fb7e
mov ecx, dword [ebp - 0x430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007fb74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fd19
push edx
push ecx
call fcn.100acb1e
add esp, 8
xor eax, eax
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 7
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007fc1b
mov esi, dword [ebp - 0x1120]
lea eax, [ebp - 0x1140]
push eax
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x1124], 2
push eax
lea eax, [ebp - 0x1148]
mov dword [ebp - 0x1140], 4
push eax
push 0
push 0x10198034
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
cmp dword [ebp - 0x1124], 2
sete bl
test esi, esi
je 0x1007fc1d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007fc1d
xor ebx, ebx
test ebx, ebx
mov ecx, str.ar_fail
mov eax, str.ar_ok
cmove eax, ecx
lea ecx, [ebp - 0x112c]
push eax
call fcn.1000e0d0
push 0x10198004
lea ecx, [ebp - 0x1128]
mov byte [ebp - 4], 0xa
call fcn.1000e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x1138], esp
mov dword [eax + 0x24], 0
push 0
push 0
lea eax, [ebp - 0x112c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x1128]
push eax
call fcn.100349e0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.10030e40
lea ecx, [ebp - 0x1128]
call fcn.1000acb0
lea ecx, [ebp - 0x112c]
call fcn.1000acb0
lea ecx, [ebp - 0x1130]
call fcn.1000acb0
lea ecx, [ebp - 0x1110]
call fcn.1000acb0
mov ebx, dword [ebp - 0x1134]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edx, dword [ebp - 0x110c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007fce3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x1134], ebx
cmp ebx, dword [ebp - 0x1144]
jl 0x1007f790
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100acb08
mov esp, ebp
pop ebp
ret 8
call fcn.1012fb57
int3