Function at 0x40f000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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
xor ecx, ecx
mov dword [ebp - 4], 2
add byte [eax], al
add byte [ebx - 0x3836cc0f], cl
inc ebp
cld
add al, byte [eax]
add byte [eax], al
push 0xffffffffffffffff
push ecx
lea eax, [esi + 4]
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00403e10
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x40f075
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x40f075
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e10
call fcn.00435fa0
test al, al
je 0x40f09a
xchg edx, eax
lea ebx, [edi - 0x40]
sub eax, 0x77c720eb
jecxz 0x40f028
cmp bh, dh
adc edx, dword [eax - 0x4b]
fxam
sub bl, dl
rcl dword [edx - 0x42dca83c]
mov ch, 0x83
jge 0x40f0ed
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
push eax
or byte [ebp + 0x430f3c45], cl
inc ebp
cmp al, 0x50
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f2ad
lea ecx, [ebp + 0xc]
call fcn.00429250
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.0042a660
mov byte [ebp - 4], 4
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp + 0x38], 8
push ebp
fadd dword [ebx + 0x5208387d]
push edx
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x2c], 8
aam 8
push ecx
cmovae eax, dword [ebp - 0x40]
push str.LastUpdTimeStamp
push eax
call ebx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp + 0x3c]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x50], 8
push edx
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push str.File
push eax
call ebx
call fcn.00436320
test al, al
je 0x40f150
inc ebx
inc ebp
shr byte [eax - 0x20], 0x99
popal
add byte [eax - 1], dl
shr eax, cl
hlt
je 0x40f11c
out 0xe0, al
jmp 0xc0840a8e
loopne 0x40f11e
push ebp
sbb dword [ebx - 0x40], eax
jne 0x40f141
dec ecx
mov cl, cl
lodsb al, byte [esi]
or eax, 0xa8d52d23
cmp edi, dword [esp + edi]
mov dl, 0x6a
dec edx
and ebp, dword [0x3c3ba8d5]
sub eax, 0x3c3ba8d5
cmp al, 0xb2
push 0x4a
cmc
sahf
call 0xe8690db2
fld xword [ebp + 2]
add byte [eax + eax*8 + 0xf9e1c74], al
ja 0x40f0e0
call fcn.00435f30
test al, al
je 0x40f175
sahf
emms
adc ebp, 0x1e
aad 0x1e
sub al, 0x5d
jecxz 0x40f0e6
scasd eax, dword es:[edi]
push esi
cli
test dword [ebp + 0xff670bd], edi
add cl, byte [ebx + edx*2]
out 0x8c, al
jle 0x40f133
jecxz 0x40f140
cmp dword [ebp + 0x50], 8
lea esi, [ebp + 0x3c]
cmovae esi, dword [ebp + 0x3c]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x40f19d
mov eax, dword [edx]
jmp 0x40f19f
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x40f1bf
mov ecx, esi
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1b0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403d10
lea ecx, [ebp - 0x58]
call fcn.004205c0
add esp, 0x18
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push edx
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push str.LastMD5
push eax
call esi
push 0
call fcn.0057e959
add esp, 4
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.0040e800
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
cmp dword [ecx + 0x14], 8
jb 0x40f231
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
push ecx
push str.CacheTime
push eax
call esi
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40f25b
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404090
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40f270
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40f299
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f2c2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x40f2e7
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00404090
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x40f310
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00404090
xor eax, eax
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
cmp eax, 8
jb 0x40f339
inc eax
lea ecx, [ebp + 0x3c]
push eax
push dword [ebp + 0x3c]
call fcn.00404090
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 0x4c