Function at 0x409de1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x47b0e4]
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 0x40a151
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a151
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40a151
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a151
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00431220
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 0x46315c
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.0040b327
lea ecx, [esi + 4]
call fcn.0040b37b
test eax, eax
je 0x40a151
lea ecx, [esi + 4]
call fcn.0040b30b
mov dword [esi + 0x1c], eax
test eax, eax
je 0x40a151
push str.updatecfg.ini
lea eax, [ebp - 0xb74]
push edi
push eax
call fcn.00409a6a
push 0x4631a0
lea eax, [ebp - 0xb7c]
push edi
push eax
call fcn.00409a6a
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 - 0xb7c]
mov esi, dword [ebp - 0xb74]
cmp eax, 1
jb 0x40a13d
mov edx, dword [ebp - 0xb6c]
push edx
push esi
push str.halodesktop
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x40a13d
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.00431220
add esp, 0xc
mov dword [ebp - 0xb68], 0x92c
lea eax, [ebp - 0xb64]
push str.halodesktop
push 0x40
push eax
call fcn.00409d79
mov eax, dword [ebp - 0xb78]
push dword [eax]
lea eax, [ebp - 0xae4]
push 0x104
push eax
call fcn.00409d79
mov eax, dword [ebp - 0xb78]
push dword [eax]
lea eax, [ebp - 0x8dc]
push 0x104
push eax
call fcn.00409d79
push str.HaloDesktop
push 0x40
lea eax, [ebp - 0x6d4]
push eax
call fcn.00409d79
push str.HaloDesktop
push 0x40
lea eax, [ebp - 0x654]
push eax
call fcn.00409d79
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 0x40a13d
call fcn.004117e0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x40a119
push 0x44
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdateliveupdater.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], bl
call fcn.00405f4b
push 3
push 0x462dc8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], bl
call fcn.00405f4b
call fcn.004117e0
mov dword [ebp - 0xb74], eax
lea ecx, [ebp - 0xc14]
push 0x90
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405063
mov ebx, eax
push str.CLiveUpdater::Update
push ebx
call fcn.00405624
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.00405733
lea ecx, [ebp - 0x224]
call fcn.00405db0
lea ecx, [ebp - 0x23c]
call fcn.00405db0
mov ebx, dword [ebp - 0xb6c]
push 0xffffffffffffffff
push str.halodesktop
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
push str.halodesktop
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.004041cf
lea ecx, [esi - 0x10]
call fcn.004041cf
mov eax, ebx
jmp 0x40a153
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret 0xc