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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d58f
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x627a40]
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.00403e10
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x40eb42
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x40eb42
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e10
call fcn.00435f30
test al, al
je 0x40eb5c
aam 0x46
int 0x5a
cdq
pushfd
fincstp
popfd
pop ds
cmp dword [edi - 0x3a828728], esi
call fcn.00436550
test al, al
je 0x40eb84
sbb al, 0xd0
inc esi
cwde
dec ebx
test byte [esi + 0x47e7befd], al
aas
xchg ebp, eax
cld
out 0x79, eax
movsd dword es:[edi], dword [esi]
mov ebx, 0xafa4307e
add eax, edx
jp 0x40ebe1
xchg esi, eax
pop edi
jecxz 0x40ebeb
sbb ebp, eax
daa
ja 0x40eb8a
call fcn.004362b0
test al, al
je 0x40eba3
add byte [eax + eax*8 + 0xac71674], al
sal byte [esi + edx - 0x39], 0xa
invalid
jge 0x40ebaf
cmp al, cl
dec ebx
inc esp
invalid
lea ecx, [ebp + 0xc]
call fcn.00429250
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x840]
call fcn.0042a660
mov byte [ebp - 4], 2
call fcn.004360f0
test al, al
je 0x40ebd9
invalid
sub byte [0xacc60ad6], 0x5d
salc
or al, dh
lodsb al, byte [esi]
pop ebp
aam 0x10
add ebp, edx
sbb esi, dword [ebx + 0x44]
aad 0x20
push edx
adc al, 0xe3
call fcn.00436010
test al, al
je 0x40ebfd
sbb ebx, dword [edi - 0x2c]
mov bl, 0xa4
pop edi
aam 0xb3
movsb byte es:[edi], byte [esi]
aad 0xf1
aad 0xe5
loopne 0x40ec4b
pop edi
jae 0x40ebc8
mov ch, 0xa3
push edx
add al, 0xbf
movsd dword es:[edi], dword [esi]
or ebp, ecx
push 0xf0f9c385
inc esi
call fcn.00435fa0
test al, al
je 0x40ec1f
invalid
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00576f50
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 0x619488
push str.LastUpdTimeStamp
push ecx
call ebx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.004039f0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x848], 0
je 0x40ef09
invalid
invalid
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x858]
cmp eax, ecx
je 0x40ecbc
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403e10
call fcn.00435fa0
test al, al
je 0x40ece7
push 0x650fc200
jb 0x40ec59
jle 0x40ed31
lds edi, [esp + edx*2 + 0x29]
out 0xef, al
stosb byte es:[edi], al
invalid
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 0x619488
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x40ed37
xor ecx, ecx
jmp 0x40ed4f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ed40
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x810]
push eax
call fcn.00403d10
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 0x619488
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x40edb2
xchg esp, eax
popal
add byte [eax - 0x20], ch
cdq
popal
add byte [ecx - 1], dl
shl dword [esi - 0x7d], cl
mov ebp, 0xfffff7f0
add byte [ebp + 4], dh
xor ecx, ecx
jmp 0x40edcf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edc0
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, ebx
call fcn.00403d10
cmp dword [ebx + 0x14], 8
jb 0x40edee
mov eax, dword [ebx]
jmp 0x40edf0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ef09
call fcn.004360f0
test al, al
je 0x40ee29
xchg esp, eax
jl 0x40ed99
mov edi, 0xe1fe2c7f
jns 0x40edf7
dec esi
push 0x3412525d
sbb cl, byte [edx - 0x8d42da3]
mov ecx, dword [edi + 1]
test esi, eax
mov ebx, 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 0x619488
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.004039f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x860], 0
jne 0x40ee9d
lea ecx, [ebp - 0x870]
xor bl, bl
call fcn.00402d00
jmp 0x40ef0b
cmp dword [ebx + 0x14], 8
jb 0x40eea5
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004039f0
lea ecx, [ebp - 0x888]
call fcn.004205c0
add esp, 0x18
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 5
call fcn.00429250
lea ecx, [ebp - 0x888]
call fcn.00429250
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x870]
call fcn.00404a90
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00402d00
test esi, esi
lea ecx, [ebp - 0x870]
sete bl
call fcn.00402d00
jmp 0x40ef0b
xor bl, bl
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x40ef29
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x848], 0
cmp eax, 8
jb 0x40ef64
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00404090
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 0x40ef9f
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00404090
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 0x40efd1
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404090
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.00570ea9
mov esp, ebp
pop ebp
ret 0x28