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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa68f
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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
xor ecx, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push ecx
lea eax, [esi + 4]
mov word [ebp - 0x828], cx
push eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
call fcn.00408100
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x40a8b2
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x40a8b2
push 0xffffffffffffffff
push 0
push eax
call fcn.00408100
call fcn.00435883
test al, al
je 0x40a8d7
pop ebp
push ebx
pop eax
push edx
pop ebp
pop ecx
push esi
push edi
pop esi
push esp
push esp
push eax
pop esi
pop eax
push eax
push ebx
push ecx
pop ebp
pop ecx
pop ebp
push edx
push ecx
pop edi
push esp
push ecx
push edx
pop ebp
push esp
call fcn.004359dc
test al, al
je 0x40a8fc
push ebx
push esi
pop edi
pop edi
pop edx
push esi
push esp
pop edi
push esi
pop eax
pop ecx
push eax
push esp
pop ebx
pop edx
push esp
push eax
pop esi
pop esp
push ecx
pop eax
push edx
push ecx
push edi
pop esp
push eax
push esi
pop eax
call fcn.004356e5
test al, al
je 0x40a925
push eax
pop ecx
push ebp
push edx
push edx
push edi
pop ebx
push edx
push ebx
push edi
pop ecx
push edi
push eax
pop ebx
push ebp
push edx
pop edx
push esi
pop edi
pop edi
pop edx
push edi
push ebp
pop esi
pop esp
push ecx
pop esi
pop esi
pop ebp
pop eax
pop edi
pop eax
call fcn.0043583e
test al, al
je 0x40a949
push ebp
pop esp
push edx
push esp
push ebp
pop ebp
pop ebx
push esi
push edx
pop edi
pop ecx
push ebx
push ebx
push edx
push ebp
pop ebp
pop esi
pop eax
push ebp
pop ebp
pop ecx
pop ecx
push edx
push edx
pop eax
push eax
pop esp
call fcn.00435af0
test al, al
je 0x40a96c
push eax
pop ebx
push edi
pop edi
push ebp
push ecx
pop eax
pop edx
push esi
pop edi
push esp
pop ecx
push esi
push eax
pop edx
pop ebx
pop eax
push esi
pop esi
pop esp
push ebx
push esi
push edx
push esp
pop edx
pop esi
lea eax, [ebp + 0xc]
push eax
call fcn.0043ac43
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.00442f67
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.00435a66
test al, al
je 0x40a9b2
push ecx
push esi
pop esp
push ebx
pop edi
push ecx
push ebp
push esi
pop edx
pop esp
push eax
pop eax
pop ecx
pop ebp
push ebp
push esp
push ecx
push ecx
push edi
pop esi
push ebp
push esi
push esp
pop ebp
pop esp
pop ecx
pop eax
pop eax
pop ebx
call fcn.0043572a
test al, al
je 0x40a9cb
push ebx
push edi
pop esp
pop ebx
push ebp
pop ecx
push esp
push ebx
push ecx
pop eax
pop ebx
pop eax
pop eax
push eax
pop edx
push esp
call fcn.00435c04
test al, al
je 0x40a9f4
pop edx
push edx
pop ebx
pop edx
push esp
push ebx
push ebp
push esp
pop edx
pop esp
push ecx
push edi
push edi
pop esi
push ebx
push ecx
pop ebx
push ebp
pop edi
push edx
pop edx
pop ebp
push eax
push esi
push ebx
push ecx
push esp
pop esi
push edi
pop ebx
pop edi
pop ebp
call fcn.0043565b
test al, al
je 0x40aa1a
push ebp
push eax
push edx
push esp
pop ebp
pop ecx
push ebp
pop edi
pop esp
pop ebx
pop esi
push esp
push ecx
pop edx
pop edi
push esp
push edx
pop ebp
push eax
push edi
push edx
push esi
push edi
push ecx
pop ebp
pop esi
pop esi
pop edi
push esi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0044e770
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x828]
add esp, 0xc
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 0x5b0700
push str.LastUpdTimeStamp
push ecx
call ebx
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x810], ax
jne 0x40aaa2
xor ecx, ecx
jmp 0x40aabf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00408220
cmp dword [ebp - 0x860], 0
mov byte [ebp - 4], 3
je 0x40add1
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x40aaff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00408100
call fcn.0043583e
test al, al
je 0x40ab29
push esi
pop ebp
pop ebp
pop edi
push esi
push esp
push ebp
push esi
pop ebp
push edx
pop ecx
pop ebp
pop esi
pop esi
push edi
pop esp
push esp
pop ebx
pop ebp
push esi
push ebp
pop ebx
pop ebx
push ebp
push eax
push esi
pop edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
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 0x5b0700
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x40ab79
xor ecx, ecx
jmp 0x40ab91
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab82
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x810]
push eax
call fcn.00408220
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
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 0x5b0700
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x40abf4
xor ecx, ecx
jmp 0x40ac0f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac00
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, esi
call fcn.00408220
cmp dword [esi + 0x14], 8
jb 0x40ac2e
mov eax, dword [esi]
jmp 0x40ac30
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40add1
call fcn.0043576f
test al, al
je 0x40ac60
push edx
push esi
pop ebp
pop ecx
pop ecx
pop esp
push ecx
pop eax
pop edx
pop ebx
pop edx
push ebx
pop edi
pop edi
push edi
push ebp
push eax
push esp
push edx
push eax
pop edx
push ebp
pop ecx
push ecx
call fcn.004357b4
test al, al
je 0x40ac79
push ecx
pop ecx
push edx
push ecx
push edx
push eax
push ecx
push eax
push edi
pop ecx
push edx
pop ebx
push ebp
push ebp
push eax
push eax
call fcn.00435b35
test al, al
je 0x40ac9d
pop esi
pop ebp
pop ecx
pop esp
push ecx
push esi
pop esi
push edx
push ebx
pop edi
pop ecx
pop eax
pop eax
push edi
push edi
push eax
push edx
pop esp
push ebp
push eax
push ecx
mov esi, dword [ebp - 0x88c]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
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 0x5b0700
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00409990
cmp dword [ebp - 0x848], 0
mov byte [ebp - 4], 4
jne 0x40ad09
xor bl, bl
jmp 0x40ad94
cmp dword [esi + 0x14], 8
jb 0x40ad11
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00409990
lea eax, [ebp - 0x888]
push eax
call fcn.0043807a
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.0043ac43
lea eax, [ebp - 0x888]
push eax
call fcn.0043ac43
cmp dword [ebp - 0x874], 8
lea ecx, [ebp - 0x888]
push dword [ebp - 0x878]
cmovae ecx, dword [ebp - 0x888]
lea eax, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
push ecx
cmovae eax, dword [ebp - 0x858]
push dword [ebp - 0x848]
push eax
call fcn.004093c0
add esp, 0x34
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00420480
test esi, esi
sete bl
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x40adb2
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00408370
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jmp 0x40add3
xor bl, bl
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40adf1
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00408370
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x860], 0
cmp eax, 8
jb 0x40ae2c
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00408370
xor eax, eax
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x830], 0
cmp eax, 8
jb 0x40ae67
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00408370
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp ecx, 8
jb 0x40ae99
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408370
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004315db
mov esp, ebp
pop ebp
ret 0x28