Function at 0x10018240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100828a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x100ae254]
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 - 0x24c], ecx
mov edi, dword [ebp + 8]
push dword [edi]
push str.CInstallSvc_enter_app_s
call fcn.10007df0
push dword [edi + 8]
call fcn.1002a320
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.10029f70
add esp, 0x1c
mov dword [ebp - 4], 0
push dword [ebp - 0x250]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100182d0
push dword [ebp - 0x250]
push str.CInstallSvc_rootdir_s_is_not_exist
call fcn.10007df0
add esp, 8
jmp 0x10018d0b
mov eax, dword [edi + 0x40]
lea esi, [edi + 0x40]
cmp dword [eax - 0xc], 0
je 0x10018cfe
mov eax, dword [edi + 0x3c]
cmp dword [eax - 0xc], 0
je 0x10018cfe
call fcn.10029420
test eax, eax
je 0x10018300
push str.CInstallSvc_hr_give_up
jmp 0x10018d03
lea eax, [ebp - 0x234]
push eax
push dword [esi]
call fcn.100159c0
add esp, 8
xor ebx, ebx
test eax, eax
js 0x10018321
cmp dword [ebp - 0x230], 4
sete bl
mov ecx, dword [ebp - 0x24c]
push esi
mov dword [ebp - 0x248], ebx
call fcn.10018050
mov dword [ebp - 0x238], eax
test ebx, ebx
je 0x1001834b
test eax, eax
je 0x1001834b
push str.CInstallSvc_is_ok
jmp 0x10018d03
push str.svc_start
lea ecx, [ebp - 0x240]
call fcn.10003d20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
cmp dword [edi + 0x38], 0
je 0x100183d5
push esi
call fcn.10028020
add esp, 4
test eax, eax
jne 0x100183d5
push str.svc_qg
lea ecx, [ebp - 0x240]
call fcn.10003d20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
jmp 0x10018d0b
lea eax, [ebp - 0x244]
push eax
call fcn.10025520
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 - 0x244]
call fcn.10005c80
test bl, bl
je 0x10018482
lea eax, [ebp - 0x244]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2e8]
push str.bIsRunning:
push eax
call fcn.10006d70
mov ebx, dword [ebp - 0x248]
lea ecx, [ebp - 0x2e8]
add esp, 8
push ebx
call fcn.10006ba0
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10005c80
jmp 0x10018488
mov ebx, dword [ebp - 0x248]
test ebx, ebx
jne 0x10018ba8
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [edi + 0x3c]
push dword [ebp - 0x250]
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 0x10018a98
mov ecx, dword [0x100af9c0]
test ecx, ecx
jne 0x10018535
push 0x100ad084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100af9c0], ebx
jne 0x10018524
push 4
call fcn.10051708
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1001850e
mov ecx, eax
call fcn.10013b80
jmp 0x10018510
xor eax, eax
mov byte [ebp - 4], 0
xor edx, edx
lea ecx, [ebp - 0x238]
lock or dword [ecx], edx
mov dword [0x100af9c0], eax
push 0x100ad084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100af9c0]
lea eax, [ebp - 0x218]
push eax
call fcn.10013c80
test eax, eax
je 0x10018a98
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0xf
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.10005c80
test bl, bl
je 0x100185f0
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2e8]
push str.stAppData.bSensitive:
push eax
call fcn.10006d70
add esp, 8
lea ecx, [ebp - 0x2e8]
push dword [edi + 0x34]
call fcn.10006ba0
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005c80
cmp dword [edi + 0x34], 0
lea ebx, [edi + 0x40]
je 0x100188e8
push ebx
call fcn.10027ad0
add esp, 4
test eax, eax
jne 0x100188e8
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x14
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.10005c80
test bl, bl
je 0x100186a7
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2e8]
push str.check_rescue
push eax
call fcn.10006d70
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 8
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005c80
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
test ecx, ecx
je 0x10018916
push edi
call fcn.10009f70
test eax, eax
je 0x10018916
push str.svc_force
lea ecx, [ebp - 0x240]
call fcn.10003d20
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
mov ecx, dword [0x100af998]
test ecx, ecx
jne 0x10018764
push 0x100ad044
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100af998], 0
jne 0x10018753
push 0x18
call fcn.10051708
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x1001873d
mov ecx, eax
call fcn.10013d70
jmp 0x1001873f
xor eax, eax
mov byte [ebp - 4], 0
xor edx, edx
lea ecx, [ebp - 0x238]
lock or dword [ecx], edx
mov dword [0x100af998], eax
push 0x100ad044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100af998]
lea eax, [ebp - 0x248]
push eax
call fcn.10013f60
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10018d4e
push eax
push dword [edi]
call fcn.1005fca6
add esp, 8
test eax, eax
jne 0x1001883d
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
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], 0x1b
lea ecx, [ebp - 0x23c]
call fcn.10005c80
test bl, bl
je 0x1001882e
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x2e8]
push str.current_product__no_stop
push eax
call fcn.10006d70
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 8
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x23c]
call fcn.10005c80
mov eax, dword [ebp - 0x24c]
push 0
mov ecx, dword [eax]
call fcn.1000fff0
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
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], 0x1b
lea ecx, [ebp - 0x23c]
call fcn.10005c80
test bl, bl
je 0x100188d6
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x2e8]
push str.rescue_svc
push eax
call fcn.10006d70
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 8
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x23c]
call fcn.10005c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.10005520
lea ebx, [edi + 0x40]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x100189f1
lea eax, [ebp - 0x218]
push eax
push str.CInstallSvc_svcpath___s_load_fail
call fcn.10007df0
add esp, 8
jmp 0x10018d0b
push str.svc_safe
lea ecx, [ebp - 0x240]
call fcn.10003d20
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
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 - 0x23c]
call fcn.10005c80
test bl, bl
je 0x10018d0b
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x2e8]
push str.no_rescue_svc
push eax
call fcn.10006d70
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 8
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005c80
jmp 0x10018d0b
push 0x1008b3a8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018a08
push 0x10089d40
call eax
mov ecx, dword [ebp - 0x24c]
push ebx
call fcn.10018050
lea ecx, [ebp - 0x240]
test eax, eax
je 0x10018a5b
push str.svc_succ
call fcn.10003d20
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
push str.CInstallSvc_type__svc_succ_1
jmp 0x10018d03
push str.svc_fails
call fcn.10003d20
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
push str.CInstallSvc_type__svc_fails_1
jmp 0x10018d03
push str.svc_other
lea ecx, [ebp - 0x240]
call fcn.10003d20
mov byte [ebp - 4], 9
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
lea eax, [ebp - 0x218]
push eax
push str.CInstallSvc_svcpath___s_is_not_exist
call fcn.10007df0
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 0xc
mov byte [ebp - 4], 0xa
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.10005c80
test bl, bl
je 0x10018d0b
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2e8]
push str.CInstallSvc_svcpath_
push eax
call fcn.10006d70
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.100027f0
lea eax, [ebp - 0x2e8]
push str.is_not_exist
push eax
call fcn.10006d70
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 0x18
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005c80
jmp 0x10018d0b
cmp dword [ebp - 0x238], 0
jne 0x10018d0b
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x2e
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.10005c80
test bl, bl
je 0x10018c71
lea eax, [ebp - 0x23c]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x2e8]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0x31
lea eax, [ebp - 0x2e8]
push str.SetAutoRun:
push eax
call fcn.10006d70
mov eax, dword [edi + 0x40]
lea ebx, [edi + 0x40]
test eax, eax
mov edx, 0x10089e28
cmovne edx, eax
lea eax, [ebp - 0x2e8]
push edx
push eax
call fcn.100027f0
mov eax, dword [esi]
lea ecx, [ebp - 0x2e8]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x2e8]
call fcn.10006f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005c80
jmp 0x10018c74
lea ebx, [edi + 0x40]
mov ecx, dword [ebp - 0x24c]
push ebx
call fcn.10018d60
lea ecx, [ebp - 0x240]
test eax, eax
je 0x10018cc4
push str.svc_succ
call fcn.10003d20
mov byte [ebp - 4], 0x33
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
push str.CInstallSvc_type__svc_succ_2
jmp 0x10018d03
push str.svc_fails
call fcn.10003d20
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0x240]
push 0
push edi
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.10005520
push str.CInstallSvc_type__svc_fails_2
jmp 0x10018d03
push str.CInstallSvc_except_1
call fcn.10007df0
add esp, 4
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018d30
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.10051ab7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10007a30
int3