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

Disassembly:
push 0x880
mov eax, 0x45da0b
call fcn.004146fb
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.00407370
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x40e5d9
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x40e5d9
push 0xffffffffffffffff
push 0
push eax
call fcn.00406e50
lea eax, [ebp + 0xc]
push eax
call fcn.0040d1f8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0040cdae
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0043f240
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 0x47241c
push 0x460b2c
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 0x40e684
lea eax, [ebp - 0x810]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00406c30
cmp dword [ebp - 0x860], 0
mov byte [ebp - 4], 3
je 0x40e8bd
lea eax, [ebp - 0x870]
cmp ebx, eax
je 0x40e6be
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406e50
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 0x47241c
push str.CacheTime
push ecx
call edi
cmp word [ebp - 0x810], 0
jne 0x40e70f
xor eax, eax
jmp 0x40e71c
lea eax, [ebp - 0x810]
push eax
call fcn.004424dd
pop ecx
mov ecx, dword [ebp - 0x88c]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00406c30
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 0x47241c
push str.File
push ecx
call edi
cmp word [ebp - 0x810], 0
jne 0x40e77d
xor eax, eax
jmp 0x40e78a
lea eax, [ebp - 0x810]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00406c30
cmp dword [esi + 0x14], ebx
jb 0x40e7a2
mov eax, dword [esi]
jmp 0x40e7a4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8bd
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 0x47241c
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 0x40e823
lea eax, [ebp - 0x810]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00406c30
cmp dword [ebp - 0x848], 0
mov byte [ebp - 4], 4
jne 0x40e847
xor bl, bl
jmp 0x40e8ac
cmp dword [esi + 0x14], ebx
jb 0x40e84e
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00406b00
lea eax, [ebp - 0x888]
push eax
call fcn.0040bc79
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.0040d1f8
lea eax, [ebp - 0x888]
push eax
call fcn.0040d1f8
add esp, 0x24
lea eax, [ebp - 0x888]
lea ecx, [ebp - 0x858]
push eax
call fcn.00407810
push 0
push 1
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00406b70
test esi, esi
sete bl
push 0
push 1
lea ecx, [ebp - 0x858]
call fcn.00406b70
jmp 0x40e8bf
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x870]
call fcn.00406b70
push 0
push 1
lea ecx, [ebp - 0x840]
call fcn.00406b70
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00406b70
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00406b70
mov al, bl
call fcn.004146b6
ret 0x28