Function at 0x4165b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0042a870
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov esi, ecx
push 0
push eax
call fcn.0042c930
add esp, 0xc
mov ecx, 0x466d80
call fcn.0040c7b0
push dword [eax]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00433a6e
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x44f640
push eax
call ebx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41662b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x24], 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41668b
lea eax, [ebp - 0x804]
push eax
call fcn.0040f880
add esp, 4
test eax, eax
lea eax, [ebp - 0x804]
push eax
jne 0x416711
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41670d
push 1
lea eax, [ebp - 0x804]
push section..data
push eax
call fcn.0040c100
add esp, 0xc
xor eax, eax
jmp 0x416717
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1004]
push eax
call edi
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call fcn.0040f880
add esp, 4
test eax, eax
lea eax, [ebp - 0x1004]
push eax
jne 0x416711
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41670d
push 1
lea eax, [ebp - 0x1004]
push section..data
push eax
call fcn.0040c100
add esp, 0xc
xor eax, eax
jmp 0x416717
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x41673e
push str.m_safelive_loader.IsValid____FALSE
call fcn.0041b930
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret
push str.CreateUpdateServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41676e
push str.CreateUpdateServer__NULL
call fcn.0041b930
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret
call eax
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x416797
push str.Create_Update_Server_Error_
call fcn.0041b930
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret
mov ecx, 0x466d80
call fcn.0040c7b0
push 0x104
push dword [eax]
lea eax, [ebp - 0x804]
push eax
call fcn.00433b17
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call edi
push 0x44f754
lea eax, [ebp - 0x804]
push eax
call ebx
mov ecx, dword [esi + 0x2c]
lea edx, [ebp - 0x804]
push dword [esi + 0x44]
push edx
mov eax, dword [ecx]
push str.360Download
call dword [eax + 4]
mov edi, eax
test edi, edi
jne 0x416807
push str.m_pUpdateServer__CreateUpdater
call fcn.0041b930
mov ecx, dword [esi + 0x2c]
add esp, 4
test ecx, ecx
je 0x416807
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a853
mov esp, ebp
pop ebp
ret