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

Disassembly:
push 0x888
mov eax, 0x5d8340
call fcn.00447fd9
mov esi, ecx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x894], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x890], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88c], eax
and dword [ebp - 4], 0
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x828]
call fcn.00403980
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4222a1
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x4222a1
push 0xffffffffffffffff
push 0
push eax
call fcn.004020b0
call fcn.004864ab
test al, al
je 0x4222bb
pop edx
pop ebx
pop edx
push edx
pop edi
push ecx
pop edx
pop ebp
push edx
push esi
pop ecx
pop eax
pop edx
pop edi
pop edi
push edx
pop ebp
call fcn.004861b4
test al, al
je 0x4222e3
push edx
pop ebp
pop ecx
push edi
push esi
pop esp
push esp
push ebx
pop ebx
pop esi
pop esp
pop eax
push esi
push eax
pop esp
pop edi
pop ecx
push ecx
pop edx
pop esp
pop esp
push esi
pop ebp
pop ebx
push ebp
push edx
pop edx
push edx
push esp
pop edi
push ecx
call fcn.00485fd1
test al, al
je 0x422302
push ecx
push edi
push ebx
push ebp
push esi
push esp
pop eax
push edx
pop edx
pop ebx
push eax
pop esi
pop esi
push edx
pop eax
pop esp
pop edx
push edi
push esp
push eax
pop ecx
push esp
lea eax, [ebp + 0xc]
push eax
call fcn.00489269
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.004885e4
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.004865bf
test al, al
je 0x42233e
pop esi
push ebx
pop ecx
pop esi
pop ebx
pop edi
pop esi
push esp
push edx
push edx
pop ebp
push eax
push ebx
pop ecx
pop esp
pop ebx
pop esp
pop esp
push esp
call fcn.00486535
test al, al
je 0x422362
push edx
push esi
pop ecx
pop esp
pop edx
pop ecx
push edx
push eax
push ebp
pop esi
pop edi
push ebx
pop esp
pop ecx
pop ecx
pop ecx
pop edi
push esp
pop edi
pop ebp
pop ecx
push ecx
pop eax
push edx
pop eax
pop ebx
push ebx
call fcn.004864f0
test al, al
je 0x422384
pop ebx
pop edx
pop edi
push ebx
pop ecx
pop edx
pop ebx
push ebp
push ecx
pop ebx
push ebp
pop ebx
push edx
push esi
push ecx
push ecx
push ecx
push eax
pop esi
push esp
pop edx
pop edx
pop edi
push ecx
push edi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x828]
mov ebx, 0x400
lea ecx, [ebp - 0x840]
push 8
pop esi
cmp dword [ebp - 0x814], esi
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], esi
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push ebx
push eax
push 0x64a7dc
push str.LastUpdTimeStamp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x860], 0
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
cmp word [ebp - 0x810], ax
je 0x422412
lea eax, [ebp - 0x810]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00401ea0
cmp dword [ebp - 0x860], 0
mov byte [ebp - 4], 3
je 0x4226b3
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x422452
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004020b0
call fcn.004864f0
test al, al
je 0x42247f
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
mov ebx, 0x400
push 8
pop esi
cmp dword [ebp - 0x814], esi
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], esi
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push ebx
push eax
push 0x64a7dc
push str.CacheTime
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x810], 0
jne 0x4224cd
xor eax, eax
jmp 0x4224da
lea eax, [ebp - 0x810]
push eax
call fcn.004a6baf
pop ecx
mov ecx, dword [ebp - 0x890]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00401ea0
cmp dword [ebp - 0x814], esi
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], esi
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push ebx
push eax
push 0x64a7dc
push str.File
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x810], 0
jne 0x42253b
xor eax, eax
jmp 0x422548
lea eax, [ebp - 0x810]
push eax
call fcn.004a6baf
pop ecx
mov ebx, dword [ebp - 0x88c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00401ea0
cmp dword [ebx + 0x14], esi
jb 0x422566
mov eax, dword [ebx]
jmp 0x422568
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4226b3
call fcn.004865bf
test al, al
je 0x4225a4
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
mov ebx, dword [ebp - 0x88c]
push 8
pop esi
cmp dword [ebp - 0x814], esi
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], esi
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x64a7dc
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x848], 0
xor eax, eax
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
cmp word [ebp - 0x810], ax
je 0x422618
lea eax, [ebp - 0x810]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00401ea0
cmp dword [ebp - 0x848], 0
mov byte [ebp - 4], 4
jne 0x42263c
xor bl, bl
jmp 0x4226a2
cmp dword [ebx + 0x14], esi
jb 0x422643
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00401d40
lea eax, [ebp - 0x888]
push eax
call fcn.0047e243
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.00489269
lea eax, [ebp - 0x888]
push eax
call fcn.00489269
add esp, 0x24
lea eax, [ebp - 0x888]
lea ecx, [ebp - 0x858]
push eax
call fcn.00422ad9
mov ebx, eax
lea ecx, [ebp - 0x888]
neg ebx
push 0
sbb bl, bl
push 1
inc bl
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x858]
call fcn.00401de0
jmp 0x4226b5
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x870]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x840]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00401de0
mov al, bl
call fcn.00447f83
ret 0x28