Function at 0x417180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fb98
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.00455020
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1088], ebx
mov dword [ebp - 0x1068], edi
mov dword [ebp - 4], edi
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1074], esi
push 0xffc
lea ecx, [ebp - 0x1012]
mov byte [ebp - 4], 1
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x10b8], 0x7ff
mov word [ebp - 0x1014], ax
call fcn.00449910
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax - 0xc], edi
jne 0x417246
add esi, 0xfffffff0
mov eax, esi
call fcn.004218e0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41777d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41777d
lea ecx, [ebp - 0x10b8]
push ecx
lea edx, [ebp - 0x1014]
push edx
push eax
call dword [sym.imp.msi.dll_MsiOpenPackageW]
cmp eax, 3
jne 0x41774b
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401110
mov bl, 2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1070]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417327
mov edx, dword [ebp - 0x1070]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4172b7
lea eax, [ebp - 0x1070]
lea edi, [ebp - 0x1074]
call fcn.0041db20
jmp 0x41771f
push ecx
mov eax, esp
mov dword [ebp - 0x1068], esp
push eax
mov ecx, 0x46ce9c
call fcn.00401110
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1070]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1078], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
lea ecx, [ebp - 0x107c]
mov dword [esi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.00419270
lea edi, [ebp - 0x1074]
mov byte [ebp - 4], 4
call fcn.0041db20
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x107c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x417713
lea ecx, [ebp - 0x107c]
push ecx
mov ecx, 0x46ab08
call fcn.00401110
mov dword [ebp - 0x10b4], edi
mov dword [ebp - 0x10b0], edi
mov dword [ebp - 0x10ac], edi
mov dword [ebp - 0x10a8], edi
mov dword [ebp - 0x10a4], edi
mov dword [ebp - 0x10a0], 0xa
lea edx, [ebp - 0x107c]
push edx
lea eax, [ebp - 0x10b4]
push eax
lea ecx, [ebp - 0x1070]
push ecx
mov byte [ebp - 4], 6
call fcn.00423c50
mov esi, 1
add esp, 0xc
cmp dword [ebp - 0x10ac], esi
jbe 0x4176ef
push ecx
mov edx, esp
mov dword [ebp - 0x1068], esp
push edx
mov ecx, 0x46ce9c
call fcn.00401110
mov byte [ebp - 4], 7
cmp dword [ebp - 0x10ac], esi
ja 0x4173b6
xor eax, eax
jmp 0x4173c6
mov eax, dword [ebp - 0x10b4]
cmp eax, edi
jne 0x4173c4
xor eax, eax
jmp 0x4173c6
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4173db
push 0x80004005
call fcn.00401680
mov eax, dword [eax + 8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1080], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x106c]
push eax
mov byte [ebp - 4], 6
call fcn.00419270
push ecx
mov bl, 8
mov ecx, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x1080], esp
push ecx
mov ecx, 0x46ce9c
call fcn.00401110
mov byte [ebp - 4], 9
cmp dword [ebp - 0x10ac], 1
ja 0x41742e
xor eax, eax
jmp 0x41743e
mov eax, dword [ebp - 0x10b4]
cmp eax, edi
jne 0x41743c
xor eax, eax
jmp 0x41743e
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x417453
push 0x80004005
call fcn.00401680
mov eax, dword [eax + 8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1068], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x1078]
mov byte [ebp - 4], bl
call fcn.00419120
mov eax, 1
lea ecx, [ebp - 0x1068]
lea edx, [ebp - 0x106c]
mov byte [ebp - 4], 0xa
call fcn.0041e3e0
call fcn.0041e5e0
mov bl, al
mov eax, dword [ebp - 0x1068]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4174bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4174ed
mov ecx, 1
lea esi, [ebp - 0x1068]
lea edx, [ebp - 0x106c]
call fcn.0041e340
lea edi, [ebp - 0x106c]
mov byte [ebp - 4], 0xb
call fcn.0041db20
mov eax, esi
call fcn.0041d790
xor eax, eax
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x1098], eax
mov dword [ebp - 0x1094], eax
mov dword [ebp - 0x1090], eax
mov ecx, SysReAllocStringLen
mov dword [ebp - 0x1064], ecx
mov dword [ebp - 0x1060], ecx
xor ecx, ecx
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x1044], 7
mov dword [ebp - 0x1048], eax
mov word [ebp - 0x1058], cx
mov byte [ebp - 4], 0xd
mov ebx, dword [ebp - 0x106c]
push 0x20019
lea esi, [ebp - 0x1064]
call fcn.004042f0
test eax, eax
jne 0x4175c7
mov eax, dword [ebp - 0x1078]
mov edx, esi
lea esi, [ebp - 0x10cc]
lea ecx, [ebp - 0x1084]
mov dword [ebp - 0x1084], edx
mov dword [ebp - 0x1080], eax
call fcn.004044c0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10cc]
mov dword [ebp - 0x109c], ecx
lea eax, [ebp - 0x10c8]
lea ecx, [ebp - 0x1098]
call fcn.0041ed70
mov byte [ebp - 4], 0xd
call fcn.004044e0
cmp dword [ebp - 0x109c], 1
jne 0x41768b
mov edx, dword [ebp - 0x1098]
lea edi, [ebp - 0x1074]
call fcn.004011b0
jmp 0x41768b
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1038], eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], eax
mov word [ebp - 0x1030], dx
mov byte [ebp - 4], 0xf
mov ebx, dword [ebp - 0x106c]
push 0x20019
lea esi, [ebp - 0x103c]
call fcn.004042f0
test eax, eax
jne 0x417680
mov ecx, dword [ebp - 0x1078]
mov eax, esi
mov dword [ebp - 0x1080], ecx
lea esi, [ebp - 0x10cc]
lea ecx, [ebp - 0x1084]
mov dword [ebp - 0x1084], eax
call fcn.004044c0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x10cc]
lea eax, [ebp - 0x10c8]
lea ecx, [ebp - 0x1098]
mov dword [ebp - 0x109c], edx
call fcn.0041ed70
mov byte [ebp - 4], 0xf
call fcn.004044e0
cmp dword [ebp - 0x109c], 1
jne 0x417680
mov edx, dword [ebp - 0x1098]
lea edi, [ebp - 0x1074]
call fcn.004011b0
lea esi, [ebp - 0x103c]
call fcn.004042b0
lea esi, [ebp - 0x1064]
call fcn.004042b0
lea esi, [ebp - 0x109c]
call fcn.004044e0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1078]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4176c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x106c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4176ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 2
lea esi, [ebp - 0x10b4]
call fcn.00423bd0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x107c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41771f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1070]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417745
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1088]
mov esi, dword [ebp - 0x1074]
add esi, 0xfffffff0
mov eax, esi
call fcn.004218e0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41777d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4177a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445447
mov esp, ebp
pop ebp
ret 4