Function at 0x405d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591d93
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x61ea64]
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
lea eax, [esi + 4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00403190
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x405dad
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x54]
cmp ecx, eax
je 0x405dad
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405da1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00401730
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405e00
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x406092
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406088
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618e
jmp 0x406088
lea eax, [ebp + 0xc]
push eax
call fcn.00412745
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00411c1b
add esp, 0xc
mov byte [ebp - 4], 4
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x54]
cmp dword [ebp + 0x38], 8
push edx
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push 0x613088
push eax
call esi
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
lea ecx, [ebp + 0x3c]
cmovae edx, dword [ebp - 0x54]
lea eax, [ebp - 0x6c]
cmp dword [ebp + 0x50], 8
push edx
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push str.File
push eax
call esi
cmp dword [ebp + 0x50], 8
lea edx, [ebp + 0x3c]
cmovae edx, dword [ebp + 0x3c]
sub esp, 0x18
mov edi, esp
mov ecx, edx
xor eax, eax
mov dword [edi + 0x10], 0
lea ebx, [ecx + 2]
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ea1
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00401730
lea eax, [ebp - 0x9c]
push eax
call fcn.00415f28
add esp, 0x1c
mov byte [ebp - 4], 5
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x54]
cmp dword [ebp - 0x88], 8
push edx
cmovae ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push str.LastMD5
push eax
call esi
push 0
call fcn.0056f73f
add esp, 4
test eax, eax
jns 0x405f27
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00407310
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x405f33
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00407310
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], dx
add esp, 8
lea edx, [ebp - 0x12]
mov eax, 7
mov dword [ebp - 0x70], eax
cmp ecx, edx
je 0x405f6b
mov eax, edx
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00401730
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x84]
cmovae edx, dword [ebp - 0x54]
cmp eax, 8
push edx
cmovae ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push str.CacheTime
push eax
call esi
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x405fd8
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406193
push edx
push ecx
call fcn.00565ee4
add esp, 8
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x406018
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40600e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406198
push edx
push ecx
call fcn.00565ee4
add esp, 8
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x40606f
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406065
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40619d
push edx
push ecx
call fcn.00565ee4
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
jmp 0x405dc3
push edx
push ecx
call fcn.00565ee4
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], eax
cmp edx, 8
jb 0x4060dc
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618e
push edx
push ecx
call fcn.00565ee4
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x406126
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40611c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618e
push edx
push ecx
call fcn.00565ee4
add esp, 8
mov edx, dword [ebp + 0x50]
xor eax, eax
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
cmp edx, 8
jb 0x406170
mov ecx, dword [ebp + 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618e
push edx
push ecx
call fcn.00565ee4
add esp, 8
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.00565c09
mov esp, ebp
pop ebp
ret 0x4c
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
int3