Function at 0x45b670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d1d2
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x597644]
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, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x45b6ae
xor eax, eax
jmp 0x45b8f2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b6a7
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b6c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x200
jae 0x45b6a7
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004dda00
push 0x400
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0050ba9e
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.00458800
push esi
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00458800
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov esi, dword [ebp - 0x814]
mov dword [ebp - 0x820], esi
test esi, esi
je 0x45b761
lock inc dword [esi + 8]
push 0
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x82c]
call fcn.0045adc0
mov edi, dword [ebp - 0x818]
or eax, 0xffffffff
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x45b7ce
lock xadd dword [edi + 8], eax
dec eax
jne 0x45b7cb
mov eax, dword [edi]
test eax, eax
je 0x45b7a3
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x45b7ba
push eax
call fcn.004984fc
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00497eef
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
or eax, 0xffffffff
mov byte [ebp - 4], 7
test esi, esi
je 0x45b80f
lock xadd dword [esi + 8], eax
dec eax
jne 0x45b80f
mov eax, dword [esi]
test eax, eax
je 0x45b7ed
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45b804
push eax
call fcn.004984fc
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00497eef
add esp, 8
cmp dword [ebp - 0x828], 0
je 0x45b8b7
lea eax, [ebp - 0x810]
mov ecx, ebx
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.0045c060
push dword [ebx + 0x4c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x45b8b7
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x45b852
mov ecx, dword [ebx + 0x64]
lea eax, [ebx + 0x64]
push edx
push eax
call dword [ecx + 4]
push dword [ebx + 0x58]
call esi
test eax, eax
je 0x45b8b7
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x45b86d
mov ecx, dword [ebx + 0x70]
lea eax, [ebx + 0x70]
push edx
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0045c870
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0045b150
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0045b910
mov eax, dword [ebx + 0x28]
mov ecx, ebx
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x82c]
push str.Setup_CallProgramOnUninst_Program
push eax
call fcn.00459060
mov esi, 1
jmp 0x45b8b9
xor esi, esi
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
call fcn.0045cda0
lea ecx, [ebp - 0x824]
call fcn.0045cda0
mov edx, dword [ebp - 0x828]
test edx, edx
je 0x45b8f0
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.004982ff
mov esp, ebp
pop ebp
ret 4