Function at 0x40c84d
Capabilities:
Check if file exists

Disassembly:
push 0xc0c
mov eax, 0x450fb2
call fcn.00417f91
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xb80], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40cb71
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cb71
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x40cb71
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cb71
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.UpdateModule.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [edi + 4]
call fcn.0040ccd3
lea ecx, [edi + 4]
call fcn.0040cd37
test eax, eax
je 0x40cb71
lea ecx, [edi + 4]
call fcn.0040ccb7
mov dword [edi + 0x1c], eax
test eax, eax
je 0x40cb71
push str.updatecfg.ini
lea eax, [ebp - 0xb7c]
push esi
push eax
call fcn.00403b80
push 0x4548e4
lea eax, [ebp - 0xb78]
mov dword [ebp - 4], ebx
push esi
push eax
call fcn.00403b80
add esp, 0x18
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], eax
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax]
cmp eax, 1
jb 0x40cb51
mov ecx, dword [edi + 0x1c]
push edi
push dword [ebp - 0xb7c]
mov eax, dword [ecx]
push 0x45496c
call dword [eax + 4]
test eax, eax
je 0x40cb51
mov ecx, dword [edi + 0x1c]
push dword [ebp - 0xb78]
push str.updatetemp
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x1c]
push dword [esi]
push str.productpath
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x1c]
push dword [esi]
push str.instdir
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x1c]
push dword [esi]
push str.datadir
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
push 0x928
lea eax, [ebp - 0xb70]
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
mov dword [ebp - 0xb74], 0x92c
lea eax, [ebp - 0xb70]
push 0x45496c
push 0x40
push eax
call fcn.00404d0b
mov esi, dword [ebp - 0xb80]
lea eax, [ebp - 0xaf0]
push dword [esi]
push 0x104
push eax
call fcn.00404d0b
push dword [esi]
lea eax, [ebp - 0x8e8]
push 0x104
push eax
call fcn.00404d0b
mov esi, 0x45496c
lea eax, [ebp - 0x6e0]
push esi
push 0x40
push eax
call fcn.00404d0b
push esi
push 0x40
lea eax, [ebp - 0x660]
push eax
call fcn.00404d0b
mov ecx, dword [edi + 0x1c]
lea edx, [ebp - 0xb74]
or dword [ebp - 0x24c], 0xffffffff
xor esi, esi
inc esi
mov dword [ebp - 0x250], esi
mov eax, dword [ecx]
push ebx
push edx
call dword [eax + 0x14]
test eax, eax
je 0x40cb51
call fcn.00416cc0
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, esi
jne 0x40cb36
push 0xf
pop esi
push 0x38
push str.e:workspace_aichat_aichat_updateupdateliveupdater.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], bl
call fcn.0040610e
push 3
push 0x45476c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], bl
call fcn.0040610e
push 0x82
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc18]
call fcn.00403218
mov esi, eax
push str.CLiveUpdater::Update
push esi
mov byte [ebp - 4], 4
call fcn.00403ac5
pop ecx
pop ecx
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0xc18]
call fcn.00403cc7
lea ecx, [ebp - 0x230]
call fcn.00405f18
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405f18
mov ecx, dword [edi + 0x1c]
mov ebx, 0x45496c
push 0xffffffffffffffff
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x1c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
mov ecx, dword [ebp - 0xb78]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 0xb7c]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov eax, ebx
jmp 0x40cb73
xor eax, eax
call fcn.00417f3b
ret 0xc