Function at 0x10016340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018deb0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101f62b4]
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 ebx, edx
mov dword [ebp - 0x5c], ebx
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
push 0x101aedac
push ecx
mov dword [ebp - 0x60], eax
call fcn.1004cb70
mov ecx, eax
call fcn.1004cc20
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.100fc930
push 9
xor eax, eax
mov dword [ebp - 0x18], 0
push str.asu.trace
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001d60
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100fd940
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10016421
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016727
push edx
push ecx
call fcn.1015cbd5
add esp, 8
call fcn.1004cb70
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
mov esi, dword [eax]
push ecx
push str.markerFilePath__s
push 0x101aee58
mov esi, dword [esi + 0x44]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x10
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 0x1001654f
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.100ff9c0
add esp, 4
call fcn.1004cb70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov esi, dword [eax]
push ecx
push str.File_data__s
push 0x101aee58
mov esi, dword [esi + 0x44]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp ebx, 8
mov edx, dword [ebp - 0x18]
push 8
cmovae ecx, esi
push 0x101b4b50
call fcn.10018fe0
add esp, 0x18
test eax, eax
je 0x10016514
call fcn.1004cb70
push str.calling_deletefile
push 0x101aee58
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x1019a4f8]
call esi
push 0
xor dl, dl
lea ecx, [ebp - 0x40]
call fcn.100ffab0
mov ebx, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x1001654c
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10016542
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001672c
push ecx
push esi
call fcn.1015cbd5
add esp, 8
mov ebx, dword [ebp - 0x5c]
test edi, edi
jne 0x10016573
push str.NULL_InstallationInfo_is_passed_as_argument_in_pim_startWorkflow
push 0x101aee58
call fcn.1004cb70
push eax
call fcn.1004dbb0
add esp, 0xc
lea esi, [edi + 3]
jmp 0x100166d3
sub esp, 0x18
mov ecx, ebx
mov edx, esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016590
sub ecx, esi
sar ecx, 1
push ecx
push ebx
mov ecx, edx
call fcn.10001d60
mov edx, dword [edi]
lea ecx, [ebp - 0x58]
call fcn.10017c60
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [edi], 4
jne 0x100165eb
call fcn.1004cb70
push str.Inside_Repair_Mode...
push 0x101aee58
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x54]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
call fcn.10017250
mov dword [edi], 0
call fcn.10040a90
lea ecx, [eax + 0x18]
mov eax, dword [edi + 4]
mov dword [ecx], eax
call fcn.1004cb70
push dword [edi]
push str.Installation_mode_is__d
mov esi, dword [eax]
push 0x101aee58
push eax
mov esi, dword [esi + 0x54]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov esi, dword [edi]
add esp, 0x10
call fcn.10040a90
mov dword [eax + 0x28], esi
mov eax, dword [edi]
cmp eax, 5
ja case.0x1001662d.2
jmp dword [eax*4 + 0x10016738]
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x58]
mov ecx, edi
call fcn.10013580
add esp, 4
mov esi, eax
jmp 0x10016689
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x58]
mov ecx, edi
call fcn.10014730
add esp, 4
mov esi, eax
jmp 0x10016689
push str.Invalid_installationMode_passed_in_InstallationInfo_in_pim_startWorkflow
push 0x101aee58
call fcn.1004cb70
push eax
call fcn.1004dbb0
add esp, 0xc
mov esi, 1
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x100166bf
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100166b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016731
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10016709
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100166ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016731
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov eax, esi
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.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
call fcn.101686f5
call fcn.101686f5
nop
push eax
add word [eax], dx
xor al, 0x66
add dword [eax], edx
insb byte es:[edi], dx
add word [eax], dx
push eax
add word [eax], dx
insb byte es:[edi], dx
add word [eax], dx
xor al, 0x66
add dword [eax], edx