Function at 0x10017630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c118
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x100a6204]
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 dword [ebp - 0x250], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x248], esi
push dword [esi]
push str.CInstallSvc_enter_app_s
call fcn.10007880
push dword [esi + 8]
call fcn.100293b0
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10029000
add esp, 0x1c
mov dword [ebp - 4], 0
push dword [ebp - 0x254]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100176c6
push dword [ebp - 0x254]
push str.CInstallSvc_rootdir_s_is_not_exist
call fcn.10007880
add esp, 8
jmp 0x100180a4
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x40]
mov dword [ebp - 0x258], edi
cmp dword [eax - 0xc], 0
je 0x10018097
mov eax, dword [esi + 0x3c]
cmp dword [eax - 0xc], 0
je 0x10018097
call fcn.100284b0
test eax, eax
je 0x100176fc
push str.CInstallSvc_hr_give_up
jmp 0x1001809c
lea eax, [ebp - 0x234]
push eax
push dword [edi]
call fcn.10014bc0
add esp, 8
xor ebx, ebx
test eax, eax
js 0x1001771d
cmp dword [ebp - 0x230], 4
sete bl
mov ecx, dword [ebp - 0x250]
push edi
mov dword [ebp - 0x24c], ebx
call fcn.10017440
mov dword [ebp - 0x240], eax
test ebx, ebx
je 0x10017747
test eax, eax
je 0x10017747
push str.CInstallSvc_is_ok
jmp 0x1001809c
push str.svc_start
lea ecx, [ebp - 0x238]
call fcn.10003ca0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
cmp dword [esi + 0x38], 0
je 0x100177d1
push edi
call fcn.100270b0
add esp, 4
test eax, eax
jne 0x100177d1
push str.svc_qg
lea ecx, [ebp - 0x238]
call fcn.10003ca0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
jmp 0x100180a4
lea eax, [ebp - 0x23c]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005780
test bl, bl
je 0x10017872
lea eax, [ebp - 0x23c]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 5
push str.bIsRunning:
push esi
call fcn.10006800
mov ebx, dword [ebp - 0x24c]
add esp, 8
mov ecx, esi
push ebx
call fcn.10006630
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005780
mov esi, dword [ebp - 0x248]
jmp 0x10017878
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
jne 0x10017f4b
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x3c]
push dword [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017e55
mov ecx, dword [0x100a79ac]
test ecx, ecx
jne 0x10017923
push 0x100a5084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a79ac], ebx
jne 0x10017912
push 4
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x10017900
mov ecx, eax
call fcn.10013420
mov ecx, eax
jmp 0x10017902
xor ecx, ecx
mov byte [ebp - 4], 0
xchg dword [ebp - 0x238], eax
mov dword [0x100a79ac], ecx
push 0x100a5084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a79ac]
lea eax, [ebp - 0x218]
push eax
call fcn.10013520
test eax, eax
je 0x10017e55
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x100179d8
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0xf
push str.stAppData.b360Sensitive:
push esi
call fcn.10006800
mov eax, dword [ebp - 0x248]
add esp, 8
mov ecx, esi
push dword [eax + 0x34]
call fcn.10006630
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
mov esi, dword [ebp - 0x248]
cmp dword [esi + 0x34], 0
lea ebx, [esi + 0x40]
je 0x10017cb3
push ebx
call fcn.10026b60
add esp, 4
test eax, eax
jne 0x10017cb3
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x10017a87
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0x13
push str.check_rescue
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
mov esi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax]
test ecx, ecx
je 0x10017ce1
push esi
call fcn.100095e0
test eax, eax
je 0x10017ce1
push str.svc_force
lea ecx, [ebp - 0x238]
call fcn.10003ca0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
mov ecx, dword [0x100a7984]
test ecx, ecx
jne 0x10017b42
push 0x100a5044
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7984], 0
jne 0x10017b31
push 0x18
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x10017b1f
mov ecx, eax
call fcn.10013610
mov ecx, eax
jmp 0x10017b21
xor ecx, ecx
mov byte [ebp - 4], 0
xchg dword [ebp - 0x238], eax
mov dword [0x100a7984], ecx
push 0x100a5044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7984]
lea eax, [ebp - 0x24c]
push eax
call fcn.10013800
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x100180e7
push eax
push dword [esi]
call fcn.10059246
add esp, 8
test eax, eax
jne 0x10017c0d
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x18
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x10017bfe
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0x1a
push str.current_product__no_stop
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x244]
call fcn.10005780
mov eax, dword [ebp - 0x250]
push 0
mov ecx, dword [eax]
call fcn.1000f970
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x1c
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x10017c98
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0x1e
push str.rescue_svc
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x244]
call fcn.10005780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.10005020
mov esi, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x258]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x10017dae
lea eax, [ebp - 0x218]
push eax
push str.CInstallSvc_svcpath___s_load_fail
call fcn.10007880
add esp, 8
jmp 0x100180a4
push str.svc_safe
lea ecx, [ebp - 0x238]
call fcn.10003ca0
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x21
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x100180a4
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0x23
push str.no_rescue_svc
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
jmp 0x100180a4
push 0x10085488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017dc5
push 0x100826f8
call eax
mov ecx, dword [ebp - 0x250]
push ebx
call fcn.10017440
lea ecx, [ebp - 0x238]
test eax, eax
je 0x10017e18
push str.svc_succ
call fcn.10003ca0
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
push str.CInstallSvc_type__svc_succ_1
jmp 0x1001809c
push str.svc_fails
call fcn.10003ca0
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
push str.CInstallSvc_type__svc_fails_1
jmp 0x1001809c
push str.svc_other
lea ecx, [ebp - 0x238]
call fcn.10003ca0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x238]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
lea eax, [ebp - 0x218]
push eax
push str.CInstallSvc_svcpath___s_is_not_exist
call fcn.10007880
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x100180a4
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0xb
push str.CInstallSvc_svcpath_
push esi
call fcn.10006800
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.100027c0
push str.is_not_exist
push esi
call fcn.10006800
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
jmp 0x100180a4
cmp dword [ebp - 0x240], 0
jne 0x100180a4
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x27
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
test bl, bl
je 0x10017ffc
lea eax, [ebp - 0x244]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x2f0]
mov ebx, dword [eax]
call fcn.10004540
mov edi, eax
mov byte [ebp - 4], 0x29
push str.SetAutoRun:
push edi
call fcn.10006800
mov edx, dword [ebp - 0x258]
mov esi, 0x10084268
mov edx, dword [edx]
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.100027c0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x2f0]
call fcn.10006a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005780
push dword [ebp - 0x258]
mov ecx, dword [ebp - 0x250]
call fcn.10018100
lea ecx, [ebp - 0x238]
test eax, eax
je 0x10018057
push str.svc_succ
call fcn.10003ca0
mov byte [ebp - 4], 0x2b
mov eax, dword [ebp - 0x248]
push 0
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
push str.CInstallSvc_type__svc_succ_2
jmp 0x1001809c
push str.svc_fails
call fcn.10003ca0
mov byte [ebp - 4], 0x2c
mov eax, dword [ebp - 0x248]
push 0
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.10005020
push str.CInstallSvc_type__svc_fails_2
jmp 0x1001809c
push str.CInstallSvc_except_1
call fcn.10007880
add esp, 4
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100180c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10049342
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100074c0
int3