Function at 0x422418
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x880
mov eax, 0x48cd7e
call fcn.00458cd6
mov edi, ecx
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x88c], eax
and dword [ebp - 4], 0
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x828]
call fcn.00403ad0
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x42246c
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x42246c
push 0xffffffffffffffff
push 0
push eax
call fcn.00402290
lea eax, [ebp + 0xc]
push eax
call fcn.0041a948
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0041a060
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00432e20
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x828]
add esp, 0x18
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4a5558
push str.LastUpdTimeStamp
push ecx
call edi
and dword [ebp - 0x860], 0
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
cmp word [ebp - 0x810], ax
je 0x422517
lea eax, [ebp - 0x810]
push eax
call fcn.00445c91
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00402070
cmp dword [ebp - 0x860], 0
mov byte [ebp - 4], 3
je 0x422750
lea eax, [ebp - 0x870]
cmp ebx, eax
je 0x422551
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00402290
push 8
pop ebx
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], ebx
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4a5558
push str.CacheTime
push ecx
call edi
cmp word [ebp - 0x810], 0
jne 0x4225a2
xor eax, eax
jmp 0x4225af
lea eax, [ebp - 0x810]
push eax
call fcn.00445c91
pop ecx
mov ecx, dword [ebp - 0x88c]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00402070
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], ebx
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4a5558
push str.File
push ecx
call edi
cmp word [ebp - 0x810], 0
jne 0x422610
xor eax, eax
jmp 0x42261d
lea eax, [ebp - 0x810]
push eax
call fcn.00445c91
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402070
cmp dword [esi + 0x14], ebx
jb 0x422635
mov eax, dword [esi]
jmp 0x422637
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422750
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], ebx
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4a5558
push str.LastMD5
push ecx
call edi
and dword [ebp - 0x848], 0
xor eax, eax
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
cmp word [ebp - 0x810], ax
je 0x4226b6
lea eax, [ebp - 0x810]
push eax
call fcn.00445c91
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00402070
cmp dword [ebp - 0x848], 0
mov byte [ebp - 4], 4
jne 0x4226da
xor bl, bl
jmp 0x42273f
cmp dword [esi + 0x14], ebx
jb 0x4226e1
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00401f10
lea eax, [ebp - 0x888]
push eax
call fcn.004279b4
cmp dword [ebp - 0x844], ebx
lea ecx, [ebp - 0x858]
lea eax, [ebp - 0x888]
cmovae ecx, dword [ebp - 0x858]
cmp dword [ebp - 0x874], ebx
push ecx
cmovae eax, dword [ebp - 0x888]
push eax
call fcn.0043a3cf
add esp, 0x24
lea ecx, [ebp - 0x888]
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
inc bl
call fcn.00401fb0
push 0
push 1
lea ecx, [ebp - 0x858]
call fcn.00401fb0
jmp 0x422752
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x870]
call fcn.00401fb0
push 0
push 1
lea ecx, [ebp - 0x840]
call fcn.00401fb0
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00401fb0
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00401fb0
mov al, bl
call fcn.00458c91
ret 0x28