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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aeff
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x6240b8]
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.00401920
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4030c2
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x4030c2
push 0xffffffffffffffff
push 0
push eax
call fcn.00401920
call fcn.004274e5
test al, al
je 0x4030e1
pop esp
push edi
pop eax
pop ebp
pop edi
pop ecx
pop edi
pop esp
pop ebp
push esi
push ecx
push edx
push ecx
push eax
push eax
pop esp
pop ebp
pop ecx
pop esp
push ebx
pop edx
push edx
call fcn.004274a0
test al, al
je 0x403108
pop ecx
pop ebp
pop edi
push esi
push esi
push ecx
pop eax
pop ebx
push ebp
pop ecx
pop ebx
pop esp
push ecx
pop esp
push esp
push ebp
pop ebx
push ecx
pop ecx
pop esp
push ebp
push edx
push esi
pop edx
pop edx
pop ebp
pop edi
pop esi
pop ebp
push edx
call fcn.004279bf
test al, al
je 0x403121
push edi
pop eax
push esp
pop esp
pop esp
pop ebx
pop esp
pop edi
push ebp
push ebp
push ebx
pop esp
push ebx
push esp
pop edx
push ebp
call fcn.00427683
test al, al
je 0x40313f
pop ecx
pop esi
pop ecx
push esi
pop esp
pop ebx
push eax
push edi
pop ecx
push esp
push esi
push ecx
pop esp
pop esp
pop ebx
push esp
pop edx
pop edx
pop eax
push esi
push edi
call fcn.0042770d
test al, al
je 0x403166
push eax
push esi
push ebx
pop esi
push eax
pop edx
push edi
pop ebx
push eax
push ecx
push eax
push eax
push ecx
push esp
push ebp
push esp
pop esi
push ebp
pop eax
push eax
pop ecx
push edi
pop ebp
push esi
pop ebx
pop esi
pop ebp
push ecx
pop ebp
push ebp
lea eax, [ebp + 0xc]
push eax
call fcn.004237bf
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0042bfbd
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.0042797a
test al, al
je 0x4031a6
pop edx
pop ecx
push eax
pop ebp
pop esp
pop esi
push edx
pop ebp
pop eax
pop ecx
push eax
push ebp
push edx
pop esp
pop edi
pop esp
push ebp
pop edi
pop ebx
push ebp
pop ebx
push edi
pop eax
call fcn.004277dc
test al, al
je 0x4031c2
push ecx
push esp
push edi
push ecx
push esp
pop ebx
push ebx
push ebp
pop edx
push edx
push ebp
pop eax
push ebp
push edx
pop ebp
push edi
push eax
push edi
push esp
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0043ffd0
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 0x619730
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 0x40324a
xor ecx, ecx
jmp 0x403262
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403253
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00401820
mov byte [ebp - 4], 3
cmp dword [ebp - 0x860], 0
je 0x403521
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x4032a2
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401920
call fcn.0042752a
test al, al
je 0x4032bc
push ebp
pop ecx
pop edx
pop esi
pop edi
pop esp
pop esi
push edi
pop esp
push esi
push ecx
push edi
push edx
pop edi
pop edi
push edx
push edi
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 0x619730
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x40330c
xor ecx, ecx
jmp 0x403324
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403315
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x810]
push eax
call fcn.00401820
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 0x619730
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x403387
xor ecx, ecx
jmp 0x40339f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403390
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, ebx
call fcn.00401820
cmp dword [ebx + 0x14], 8
jb 0x4033be
mov eax, dword [ebx]
jmp 0x4033c0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403521
call fcn.004274e5
test al, al
je 0x4033ef
push ecx
pop esi
push ebx
pop ebx
push eax
pop ebx
pop esp
push edi
push ebp
pop ebp
pop eax
push edi
push eax
pop ebp
pop ebx
push esi
pop ebp
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 0x619730
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.004015d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x848], 0
jne 0x40345b
xor bl, bl
jmp 0x4034e4
cmp dword [ebx + 0x14], 8
jb 0x403463
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004015d0
lea eax, [ebp - 0x888]
push eax
call fcn.00424f4a
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.004237bf
lea eax, [ebp - 0x888]
push eax
call fcn.004237bf
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.00402450
add esp, 0x34
lea ecx, [ebp - 0x888]
test eax, eax
sete bl
call fcn.00401590
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x403502
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00401b30
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jmp 0x403523
xor bl, bl
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x403541
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00401b30
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 0x40357c
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00401b30
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 0x4035b7
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00401b30
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 0x4035e9
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401b30
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.0041eca9
mov esp, ebp
pop ebp
ret 0x28