Function at 0x476990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480e45
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x4be5b4]
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 esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4769ce
xor eax, eax
jmp 0x476ccb
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x4769c7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4769e0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x200
jae 0x4769c7
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00432c40
push 0x400
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.0046efe4
add esp, 0x18
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.version1.0_encodingutf_16
lea ecx, [ebp - 0x814]
call fcn.00474650
push edi
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00474650
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x820], eax
test eax, eax
je 0x476a87
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x82c]
call fcn.00476530
lea ecx, [ebp - 0x818]
call fcn.00455b70
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 7
call fcn.00455b70
cmp dword [ebp - 0x828], 0
je 0x476c90
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.00477270
cmp byte [esi + 0x74], 0
jne 0x476b00
push dword [esi + 0x4c]
call ebx
test eax, eax
je 0x476c90
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x476b00
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x5c]
push edx
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.00477750
push 0xc
call fcn.0042cb31
mov edi, eax
add esp, 4
mov dword [ebp - 0x814], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x476b4d
push str.Setup_Application
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x476ce9
jmp 0x476b4f
xor edi, edi
mov byte [ebp - 4], 7
mov dword [ebp - 0x814], edi
test edi, edi
je 0x476cf3
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00476380
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 0xb
call fcn.00455b70
mov ebx, dword [ebp - 0x834]
mov edi, dword [ebp - 0x838]
test ebx, ebx
je 0x476bf6
test edi, edi
je 0x476bf6
push str.MainApp
lea ecx, [ebp - 0x818]
call fcn.00474650
push 0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea ecx, [ebp - 0x83c]
call fcn.00475d40
lea ecx, [ebp - 0x818]
call fcn.00455b70
mov ebx, dword [ebp - 0x834]
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x476bee
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
je 0x476bee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, dword [ebp - 0x838]
jmp 0x476c0c
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x476c0c
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
je 0x476c0c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test edi, edi
je 0x476c18
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor edi, edi
test ebx, ebx
je 0x476c22
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
test edi, edi
je 0x476c2c
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x82c]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00476d00
cmp byte [esi + 0x74], 0
mov ecx, esi
je 0x476c72
lea eax, [ebp - 0x82c]
push eax
call fcn.00476720
mov eax, dword [esi + 0x1c]
mov ecx, esi
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x82c]
push str.Setup_CallProgramOnInst_Program
push eax
call fcn.00474f00
mov esi, 1
jmp 0x476c92
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x82c]
push str.Setup_CallProgramOnUninst_Program
push eax
call fcn.00474f00
mov esi, 1
jmp 0x476c92
xor esi, esi
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
call fcn.00455b70
lea ecx, [ebp - 0x824]
call fcn.00455b70
mov edx, dword [ebp - 0x828]
test edx, edx
je 0x476cc9
mov ecx, dword [edx]
push edx
call dword [ecx + 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.0042c75e
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.00470420
push 0x8007000e
call fcn.00470420
int3