Function at 0x41a400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4697c8
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.0045e940
mov eax, dword [0x4846a0]
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 [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
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.00453220
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax - 0xc], edi
jne 0x41a4c6
add esi, 0xfffffff0
mov eax, esi
call fcn.00426710
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 0x41a9fd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41a9fd
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 0x41a9cb
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 0x41a5a7
mov edx, dword [ebp - 0x1070]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41a537
lea eax, [ebp - 0x1070]
lea edi, [ebp - 0x1074]
call fcn.00421630
jmp 0x41a99f
push ecx
mov eax, esp
mov dword [ebp - 0x1068], esp
push eax
mov ecx, 0x472154
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.00426710
add eax, 0x10
lea ecx, [ebp - 0x107c]
mov dword [esi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.0041c870
lea edi, [ebp - 0x1074]
mov byte [ebp - 4], 4
call fcn.00421630
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 0x41a993
lea ecx, [ebp - 0x107c]
push ecx
mov ecx, 0x475128
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.00429ca0
mov esi, 1
add esp, 0xc
cmp dword [ebp - 0x10ac], esi
jbe 0x41a96f
push ecx
mov edx, esp
mov dword [ebp - 0x1068], esp
push edx
mov ecx, 0x472154
call fcn.00401110
mov byte [ebp - 4], 7
cmp dword [ebp - 0x10ac], esi
ja 0x41a636
xor eax, eax
jmp 0x41a646
mov eax, dword [ebp - 0x10b4]
cmp eax, edi
jne 0x41a644
xor eax, eax
jmp 0x41a646
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41a65b
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.00426710
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x106c]
push eax
mov byte [ebp - 4], 6
call fcn.0041c870
push ecx
mov bl, 8
mov ecx, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x1080], esp
push ecx
mov ecx, 0x472154
call fcn.00401110
mov byte [ebp - 4], 9
cmp dword [ebp - 0x10ac], 1
ja 0x41a6ae
xor eax, eax
jmp 0x41a6be
mov eax, dword [ebp - 0x10b4]
cmp eax, edi
jne 0x41a6bc
xor eax, eax
jmp 0x41a6be
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41a6d3
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.00426710
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x1078]
mov byte [ebp - 4], bl
call fcn.0041c720
mov eax, 1
lea ecx, [ebp - 0x1068]
lea edx, [ebp - 0x106c]
mov byte [ebp - 4], 0xa
call fcn.00421ef0
call fcn.004220f0
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 0x41a73d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41a76d
mov ecx, 1
lea esi, [ebp - 0x1068]
lea edx, [ebp - 0x106c]
call fcn.00421e50
lea edi, [ebp - 0x106c]
mov byte [ebp - 4], 0xb
call fcn.00421630
mov eax, esi
call fcn.004245a0
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.00404660
test eax, eax
jne 0x41a847
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.00404830
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.00422a20
mov byte [ebp - 4], 0xd
call fcn.00404850
cmp dword [ebp - 0x109c], 1
jne 0x41a90b
mov edx, dword [ebp - 0x1098]
lea edi, [ebp - 0x1074]
call fcn.004011b0
jmp 0x41a90b
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.00404660
test eax, eax
jne 0x41a900
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.00404830
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.00422a20
mov byte [ebp - 4], 0xf
call fcn.00404850
cmp dword [ebp - 0x109c], 1
jne 0x41a900
mov edx, dword [ebp - 0x1098]
lea edi, [ebp - 0x1074]
call fcn.004011b0
lea esi, [ebp - 0x103c]
call fcn.00404620
lea esi, [ebp - 0x1064]
call fcn.00404620
lea esi, [ebp - 0x109c]
call fcn.00404850
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 0x41a947
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 0x41a96d
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.00429be0
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 0x41a99f
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 0x41a9c5
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.00426710
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 0x41a9fd
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 0x41aa23
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.0044ebd7
mov esp, ebp
pop ebp
ret 4