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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc69f
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x67432c]
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.004029b0
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4051a2
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x4051a2
push 0xffffffffffffffff
push 0
push eax
call fcn.004029b0
call fcn.004524ef
test al, al
je 0x4051bc
mov eax, dword [0x31a8622b]
adc dword [edx], ebx
mov dh, 0x47
aam 0xaf
imul edi, dword [ecx + 0x6ba67d22], 0xffffffe8
aaa
rol byte [eax + eax], 1
call fcn.004521f8
test al, al
je 0x4051e4
mov dl, 0xdc
leave
fstp xword [ecx + 0x2f770bc1]
popal
std
pop esp
push esi
mov ebx, 0xf3d2c267
ljmp 0x916a
call fcn.00452015
test al, al
je 0x405203
invalid
lea eax, [ebp + 0xc]
push eax
call fcn.0045bc25
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0045689a
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.00452603
test al, al
je 0x40523f
int3
call fcn.00452579
test al, al
je 0x405263
insd dword es:[edi], dx
popfd
jno 0x405256
dec edi
pop esi
invalid
xor edx, ebp
and dword [eax], esp
pushal
fisttp qword [edx - 0x14]
imul ecx, dword [ebx - 0x6d], 0xcce890be
rol byte [eax + eax], cl
call fcn.00452534
test al, al
je 0x405285
cwde
pop eax
wait
mov dl, 0x79
test al, 0x76
xor eax, 0x1fb5fd3d
outsb dx, byte [esi]
shr bl, cl
test byte [esi + 0x23], dh
lodsd eax, dword [esi]
outsd dx, dword [esi]
adc edx, ebp
div byte [ebx]
cmpsb byte [esi], byte es:[edi]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00480640
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 0x5e6948
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 0x40530d
xor ecx, ecx
jmp 0x405325
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405316
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00402ad0
cmp dword [ebp - 0x860], 0
mov byte [ebp - 4], 3
je 0x40560d
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x405365
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004029b0
call fcn.00452534
test al, al
je 0x405390
in eax, 0xcc
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 0x5e6948
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x4053e0
xor ecx, ecx
jmp 0x4053ff
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4053f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x810]
push eax
call fcn.00402ad0
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 0x5e6948
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x405462
xor ecx, ecx
jmp 0x40547f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405470
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, ebx
call fcn.00402ad0
cmp dword [ebx + 0x14], 8
jb 0x40549e
mov eax, dword [ebx]
jmp 0x4054a0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40560d
call fcn.00452603
test al, al
je 0x4054d9
pop ebp
cmc
adc ecx, edx
int1
dec eax
ret
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 0x5e6948
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.004041e0
cmp dword [ebp - 0x848], 0
mov byte [ebp - 4], 4
jne 0x405545
xor bl, bl
jmp 0x4055d0
cmp dword [ebx + 0x14], 8
jb 0x40554d
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004041e0
lea eax, [ebp - 0x888]
push eax
call fcn.0045411f
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.0045bc25
lea eax, [ebp - 0x888]
push eax
call fcn.0045bc25
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.00403c50
add esp, 0x34
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00403710
test esi, esi
sete bl
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x4055ee
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00402c20
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jmp 0x40560f
xor bl, bl
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40562d
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00402c20
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 0x405668
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00402c20
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 0x4056a3
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00402c20
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 0x4056d5
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402c20
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.0046d81d
mov esp, ebp
pop ebp
ret 0x28