Function at 0x409576
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xb78], eax
xor ebx, ebx
push esi
mov eax, dword [eax]
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb6c], esi
mov dword [ebp - 0xb70], edi
cmp dword [eax - 0xc], ebx
je 0x4098fc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4098fc
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4098fc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4098fc
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004320f0
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 str.UpdateModule.dll
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.0040aa5d
lea ecx, [esi + 4]
call fcn.0040aab8
test eax, eax
je 0x4098fc
lea ecx, [esi + 4]
call fcn.0040aa41
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4098fc
push str.updatecfg.ini
lea eax, [ebp - 0xb7c]
push edi
push eax
call fcn.004091d8
push str.update
lea eax, [ebp - 0xb74]
push edi
push eax
call fcn.004091d8
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 esi, dword [ebp - 0xb7c]
mov edi, dword [ebp - 0xb74]
cmp eax, 1
jb 0x4098e8
mov edx, dword [ebp - 0xb6c]
push edx
push esi
push 0x46803c
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x4098e8
mov ecx, dword [ebp - 0xb6c]
push edi
push str.updatetemp
push ebx
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb6c]
mov edx, dword [ebp - 0xb70]
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 - 0xb6c]
mov edx, dword [ebp - 0xb70]
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 - 0xb6c]
mov edx, dword [ebp - 0xb70]
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 - 0xb64]
push ebx
push eax
call fcn.004320f0
add esp, 0xc
mov dword [ebp - 0xb68], 0x92c
lea eax, [ebp - 0xb64]
push 0x46803c
push 0x40
push eax
call fcn.0040950e
mov eax, dword [ebp - 0xb78]
push dword [eax]
lea eax, [ebp - 0xae4]
push 0x104
push eax
call fcn.0040950e
mov eax, dword [ebp - 0xb78]
push dword [eax]
lea eax, [ebp - 0x8dc]
push 0x104
push eax
call fcn.0040950e
push 0x46803c
push 0x40
lea eax, [ebp - 0x6d4]
push eax
call fcn.0040950e
push 0x46803c
push 0x40
lea eax, [ebp - 0x654]
push eax
call fcn.0040950e
mov eax, dword [ebp - 0xb6c]
lea edx, [ebp - 0xb68]
or dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x244], 1
push ebx
mov ecx, dword [eax + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x4098e8
push ebx
push ebx
push 1
push ebx
push str.update_start
call fcn.00405177
mov ecx, eax
call fcn.004126a0
call fcn.00411550
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x4098c4
push 0x4b
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdateliveupdater.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], bl
call fcn.0040576d
push 3
push 0x467ca0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], bl
call fcn.0040576d
call fcn.00411550
mov dword [ebp - 0xb74], eax
lea ecx, [ebp - 0xc14]
push 0x95
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404886
mov ebx, eax
push str.CLiveUpdater::Update
push ebx
call fcn.00404e47
mov eax, dword [ebp - 0xb74]
pop ecx
pop ecx
push ebx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0xc14]
call fcn.00404f56
lea ecx, [ebp - 0x224]
call fcn.0040562a
lea ecx, [ebp - 0x23c]
call fcn.0040562a
mov ebx, dword [ebp - 0xb6c]
push 0xffffffffffffffff
push 0x46803c
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
push 0x46803c
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.00403b1f
lea ecx, [esi - 0x10]
call fcn.00403b1f
mov eax, ebx
jmp 0x4098fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret 0xc