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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f0af
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x6160b8]
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 - 0x890], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x894], 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.00403120
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4015f2
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x4015f2
push 0xffffffffffffffff
push 0
push eax
call fcn.00403120
call fcn.0041d0d8
test al, al
je 0x401611
pop ebx
push eax
pop ecx
pop esi
push ebx
pop edx
pop eax
pop eax
push ebp
push edi
push ebx
pop ebp
push esi
push ecx
push ecx
push eax
pop edx
push edi
pop ecx
push esp
push ebx
push ecx
call fcn.0041cfc4
test al, al
je 0x40163a
push ecx
pop ecx
push esi
push esp
pop ebp
push ebp
push ecx
pop eax
pop esp
pop ecx
pop eax
push ebx
pop eax
push eax
pop edx
pop ebp
push ecx
push edx
pop ebp
push edi
pop ecx
pop eax
push esi
push edx
pop edi
push esp
push esi
pop edx
pop edx
pop edi
push ebp
push ecx
call fcn.0041d093
test al, al
je 0x40165a
pop eax
push ebx
push esp
pop ebx
push edi
pop ecx
pop edx
push esi
pop eax
pop edx
pop ecx
push esi
push ebx
push esi
push esp
pop esp
pop eax
push esi
pop edi
pop ecx
push esp
push ebx
pop eax
call fcn.0041cf3a
test al, al
je 0x401679
pop ebx
pop ecx
push eax
pop eax
pop esi
pop edi
push edx
pop ebp
push esi
pop esi
push ecx
push ecx
pop esi
push ebp
pop ecx
push edi
pop ebx
pop ebx
pop ebp
pop eax
pop eax
push edi
call fcn.0041cf3a
test al, al
je 0x401693
pop ebx
pop eax
push esi
pop ebx
pop eax
pop ebx
pop ebx
push ecx
pop ecx
push edx
push edx
pop edi
pop esp
pop ebp
pop eax
pop esi
pop ecx
lea eax, [ebp + 0xc]
push eax
call fcn.0042c134
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0042bdcf
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.0041cd9c
test al, al
je 0x4016d3
push eax
push esp
push ebp
push esi
pop ebp
push ecx
push edi
pop edx
pop edi
pop edi
push ebp
pop eax
push esp
pop ebx
pop esi
push ebx
push edi
pop esp
pop edi
pop ebp
push esi
pop edi
pop esi
call fcn.0041cef5
test al, al
je 0x4016fc
pop edx
pop eax
pop edi
pop ebx
push ebx
pop eax
pop esp
pop esp
push ebx
push eax
pop esp
pop ebx
push esi
push ebp
push esp
push ebx
push edx
pop esp
pop esp
pop esp
push eax
pop eax
push edx
pop esp
push ebx
pop ebx
pop edi
push ebx
pop edx
push esp
pop ecx
pop eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00434140
add esp, 0xc
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
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 0x60dbc0
push str.LastUpdTimeStamp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x810], ax
jne 0x401782
xor ecx, ecx
jmp 0x40179f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401790
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00403020
mov byte [ebp - 4], 3
cmp dword [ebp - 0x860], 0
je 0x401ac0
mov eax, dword [ebp - 0x890]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x4017df
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403120
call fcn.0041cbfe
test al, al
je 0x401807
pop ebp
pop esi
push ebp
pop edi
push edx
pop edi
pop edi
pop eax
pop ebx
pop edx
pop ebx
push esi
push ecx
push edi
pop ecx
pop edx
push esp
push ebp
pop edi
push ecx
push eax
pop ebp
push ecx
pop eax
pop edx
pop edx
push esp
pop esp
pop esp
pop ebx
pop eax
call fcn.0041cd57
test al, al
je 0x40182f
pop ebp
pop edi
push esp
pop ebx
pop esp
pop edi
pop esi
pop ebp
push eax
push eax
push edi
pop edx
pop ebp
pop esi
pop esp
pop edx
pop edx
push ecx
push eax
pop edx
push ebx
push edx
push edx
push ebp
pop ebp
pop ebx
pop edi
pop esp
pop eax
pop edx
push ecx
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
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 0x60dbc0
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x401885
xor ecx, ecx
jmp 0x40189f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401890
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x894]
lea eax, [ebp - 0x810]
push eax
call fcn.00403020
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 0x60dbc0
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x401902
xor ecx, ecx
jmp 0x40191f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401910
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, ebx
call fcn.00403020
cmp dword [ebx + 0x14], 8
jb 0x40193e
mov eax, dword [ebx]
jmp 0x401940
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ac0
call fcn.0041d093
test al, al
je 0x40196f
push ebx
pop esi
pop esi
push eax
push ecx
pop esi
pop ecx
push ecx
pop esp
push esp
push esi
push edx
push esi
pop ecx
push ebx
pop ecx
push esp
push ebx
push edx
push esi
push eax
pop ebp
pop esp
call fcn.0041cc43
test al, al
je 0x40198e
push eax
pop esp
push ebx
pop ebp
pop ecx
pop esi
push esi
pop eax
push ecx
pop ecx
push eax
push esi
pop edi
push edi
push edx
pop esp
pop esp
pop edx
pop esp
push eax
push esi
push esp
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 0x60dbc0
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00402db0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x848], 0
jne 0x4019fa
xor bl, bl
jmp 0x401a83
cmp dword [ebx + 0x14], 8
jb 0x401a02
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00402db0
lea eax, [ebp - 0x888]
push eax
call fcn.0041a660
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.0042c134
lea eax, [ebp - 0x888]
push eax
call fcn.0042c134
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.00403a70
add esp, 0x34
lea ecx, [ebp - 0x888]
test eax, eax
sete bl
call fcn.00402cf0
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x401aa1
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jmp 0x401ac2
xor bl, bl
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x401ae0
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00403340
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 0x401b1b
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00403340
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 0x401b56
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00403340
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 0x401b88
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403340
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.004144d9
mov esp, ebp
pop ebp
ret 0x28