Function at 0x422736
Capabilities:
Check if file exists

Disassembly:
push 0x68
mov eax, 0x5d83c3
call fcn.00447fd9
mov esi, ecx
lea eax, [esi + 4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00403980
xor ebx, ebx
mov byte [ebp - 4], 3
cmp dword [ebp + 8], ebx
je 0x422775
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x422775
push 0xffffffffffffffff
push ebx
push eax
call fcn.004020b0
call fcn.004864f0
test al, al
je 0x42279c
push esi
pop edx
push edx
push esp
pop edi
push esi
push ebx
pop ebx
pop esi
push ebp
push esp
push eax
push ebx
pop edi
pop edx
push ebx
pop esp
pop ebx
push ecx
pop edx
pop esp
pop edx
pop esp
pop ebx
pop esi
push esi
push esp
push esp
xor ebx, ebx
push 8
pop esi
cmp dword [ebp + 0x50], esi
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4227bc
xor esi, esi
inc esi
jmp 0x422930
lea eax, [ebp + 0xc]
push eax
call fcn.00489269
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004885e4
add esp, 0xc
cmp dword [ebp - 0x14], esi
lea edx, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 0x24]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x38], esi
push edx
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x2c], esi
push ecx
cmovae eax, dword [ebp - 0x40]
push str.LastUpdTimeStamp
push eax
mov byte [ebp - 4], 4
call edi
cmp dword [ebp - 0x14], esi
lea edx, [ebp - 0x28]
lea ecx, [ebp + 0x3c]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x50], esi
push edx
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0x2c], esi
push ecx
cmovae eax, dword [ebp - 0x40]
push str.File
push eax
call edi
call fcn.00486016
test al, al
je 0x422858
push edx
push esp
pop esp
push edx
push eax
push eax
push ebx
push edi
push ecx
push ecx
pop esp
pop edx
pop ebx
push ebx
pop ecx
pop eax
pop eax
pop eax
push ebx
pop ebx
pop esi
push esi
push edx
pop ebp
push esi
pop ebx
pop ebx
pop esp
pop edx
pop edx
pop eax
push ebp
call fcn.004864ab
test al, al
je 0x422883
pop esi
push esp
pop ebx
push edx
push eax
pop edi
pop ecx
push ecx
push esi
push ecx
pop ebp
push esi
push ebx
push ecx
push ecx
pop esi
pop esp
pop edi
pop edx
push edi
push edx
pop esp
pop eax
push edx
pop esi
pop ecx
push ebp
pop ebx
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 8
pop esi
cmp dword [ebp + 0x50], esi
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401d40
lea eax, [ebp - 0x58]
push eax
call fcn.0047e243
add esp, 0x1c
cmp dword [ebp - 0x14], esi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x44], esi
push edx
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], esi
push ecx
cmovae eax, dword [ebp - 0x40]
push str.LastMD5
push eax
call edi
xor ebx, ebx
push ebx
call fcn.004b0b15
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422b09
add esp, 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
cmp dword [ecx + 0x14], esi
jb 0x4228fb
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], esi
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
push ecx
push str.CacheTime
push eax
call edi
xor esi, esi
lea ecx, [ebp - 0x70]
push ebx
inc esi
push esi
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401de0
push ebx
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401de0
call fcn.00447f83
ret 0x4c