Function at 0x405c46
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4c
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xb44], eax
xor ebx, ebx
push esi
mov eax, dword [eax]
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb3c], esi
mov dword [ebp - 0xb40], edi
cmp dword [eax - 0xc], ebx
je 0x405eec
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405eec
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405eec
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405eec
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040a0a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x425bd4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [esi + 4]
call fcn.00406021
lea ecx, [esi + 4]
call fcn.004060d9
test eax, eax
je 0x405eec
lea ecx, [esi + 4]
call fcn.00406005
mov dword [esi + 0x1c], eax
test eax, eax
je 0x405eec
push str.updatecfg.ini
lea eax, [ebp - 0xb4c]
push edi
push eax
call fcn.0040231e
push 0x425c10
lea eax, [ebp - 0xb48]
push edi
push eax
call fcn.0040231e
mov ecx, dword [esi + 0x1c]
add esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], eax
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp - 0xb48]
mov esi, dword [ebp - 0xb4c]
cmp eax, 1
jb 0x405ed8
mov edx, dword [ebp - 0xb3c]
push edx
push esi
push str.defragger
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x405ed8
mov ecx, dword [ebp - 0xb3c]
push edi
push str.updatetemp
push ebx
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb40]
mov ecx, dword [eax + 0x1c]
push dword [edx]
push str.productpath
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb40]
mov ecx, dword [eax + 0x1c]
push dword [edx]
push str.instdir
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb40]
mov ecx, dword [eax + 0x1c]
push dword [edx]
push str.datadir
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
push 0x928
lea eax, [ebp - 0xb34]
push ebx
push eax
call fcn.0040a0a0
add esp, 0xc
mov dword [ebp - 0xb38], 0x92c
lea eax, [ebp - 0xb34]
push str.defragger
push 0x40
push eax
call fcn.004010a0
mov eax, dword [ebp - 0xb44]
push dword [eax]
lea eax, [ebp - 0xab4]
push 0x104
push eax
call fcn.004010a0
mov eax, dword [ebp - 0xb44]
push dword [eax]
lea eax, [ebp - 0x8ac]
push 0x104
push eax
call fcn.004010a0
push str.defragger
push 0x40
lea eax, [ebp - 0x6a4]
push eax
call fcn.004010a0
push str.defragger
push 0x40
lea eax, [ebp - 0x624]
push eax
call fcn.004010a0
mov eax, dword [ebp - 0xb3c]
lea edx, [ebp - 0xb38]
or dword [ebp - 0x210], 0xffffffff
mov dword [ebp - 0x214], 1
push ebx
mov ecx, dword [eax + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x405ed8
push str.CLiveUpdater::Update
call fcn.00401cc4
mov ebx, dword [ebp - 0xb3c]
pop ecx
push 0xffffffffffffffff
push str.defragger
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
push str.defragger
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.00401946
lea ecx, [esi - 0x10]
call fcn.00401946
mov eax, ebx
jmp 0x405eee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040815d
leave
ret 0xc