Function at 0x40c530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ca12
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x426168]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x62c], ebx
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 4], ebx
call fcn.0040acd0
mov ecx, dword [ebp - 0x62c]
mov edi, ecx
neg edi
sbb edi, edi
and edi, 0x7fffbffd
mov eax, ebx
add edi, 0x80004003
mov dword [ebp - 0x638], eax
mov byte [ebp - 4], 1
js 0x40c7bb
push str.manualupgrade
mov edi, ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x640], esi
jne 0x40c5cb
push 0x8007000e
call fcn.00401000
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
lea ecx, [ebp - 0x638]
push ecx
push esi
push edi
mov byte [ebp - 4], 2
call edx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x638]
cmp eax, ebx
je 0x40c7b5
mov edi, 1
mov edi, edi
mov dword [ebp - 0x630], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x630]
push edx
push eax
mov eax, dword [ecx + 0x24]
mov byte [ebp - 4], 3
call eax
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x630]
cmp eax, ebx
je 0x40c793
mov dword [ebp - 0x634], ebx
lea ecx, [ebp - 0x634]
push ecx
push str.folder
push eax
mov byte [ebp - 4], 4
call fcn.0040b640
add esp, 0xc
cmp al, bl
je 0x40c745
call dword [0x426068]
push 0x616
lea edx, [ebp - 0x626]
push ebx
push edx
mov word [ebp - 0x628], bx
call fcn.0040e580
mov eax, dword [ebp - 0x644]
add esp, 0xc
cmp eax, ebx
je 0x40c69e
cmp word [eax], bx
je 0x40c69e
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.0040dfc2
add esp, 0x10
jmp 0x40c6b2
lea ecx, [ebp - 0x628]
push 0x30b
push ecx
call fcn.0040a070
add esp, 8
mov eax, dword [ebp - 0x634]
cmp eax, ebx
je 0x40c6c0
mov eax, dword [eax]
jmp 0x40c6c2
xor eax, eax
push eax
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x40c709
push ecx
lea edx, [ebp - 0x628]
mov ecx, esp
mov dword [ebp - 0x648], esp
push edx
call fcn.00402180
call fcn.0040a680
add esp, 4
cmp eax, ebx
jne 0x40c709
mov edi, 0x80004005
jmp 0x40c745
mov dword [ebp - 0x63c], ebx
mov eax, dword [ebp - 0x62c]
mov ecx, dword [eax]
lea edx, [ebp - 0x63c]
push edx
mov edx, dword [ebp - 0x630]
push edx
push eax
mov eax, dword [ecx + 0x50]
mov byte [ebp - 4], 5
call eax
mov eax, dword [ebp - 0x63c]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x40c745
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x634]
cmp esi, ebx
je 0x40c78d
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x40c787
cmp esi, ebx
je 0x40c787
mov eax, dword [esi]
cmp eax, ebx
je 0x40c76e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40c77e
push eax
call fcn.0040d2a5
add esp, 4
push esi
call fcn.0040d1eb
add esp, 4
mov dword [ebp - 0x634], ebx
mov eax, dword [ebp - 0x630]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40c7a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x640], ebx
mov eax, dword [ebp - 0x638]
je 0x40c600
mov ecx, dword [ebp - 0x62c]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x40c7d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x62c]
cmp ecx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x40c7e3
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, edi
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.0040d2aa
mov esp, ebp
pop ebp
ret 4