Function at 0x403e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dff70
push 0x486ef0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffb8
mov eax, dword [0x4e500c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x403e71
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403e89
mov eax, 1
jmp 0x4041bb
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.00405c70
add esp, 4
test eax, eax
jne 0x403ef1
mov eax, dword [ebp - 0x54]
or eax, 0x1000000
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004041e0
add esp, 0xc
test eax, eax
jne 0x403f1e
mov ecx, dword [ebp - 0x54]
or ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
or edx, 0x10000
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004042c0
add esp, 8
test eax, eax
jne 0x403f46
mov edx, dword [ebp - 0x54]
or edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
or eax, 0x20000
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00404400
add esp, 0xc
test eax, eax
jne 0x403f6a
mov ecx, dword [ebp - 0x54]
or ecx, 0x40000
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004044e0
add esp, 8
test eax, eax
jne 0x403f8a
mov ecx, dword [ebp - 0x54]
or ecx, 0x80000
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004053e0
add esp, 8
test eax, eax
jne 0x403faa
mov ecx, dword [ebp - 0x54]
or ecx, 0x100000
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404400
add esp, 0xc
test eax, eax
jne 0x403fce
mov edx, dword [ebp - 0x54]
or edx, 0x200000
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004044e0
add esp, 8
test eax, eax
jne 0x403fee
mov edx, dword [ebp - 0x54]
or edx, 0x400000
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004055f0
add esp, 8
test eax, eax
jne 0x40400e
mov edx, dword [ebp - 0x54]
or edx, 0x800000
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00404600
add esp, 8
test eax, eax
jne 0x40402b
mov edx, dword [ebp - 0x54]
or edx, 2
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00404940
add esp, 4
test eax, eax
jne 0x404044
mov ecx, dword [ebp - 0x54]
or ecx, 4
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00405b60
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jne 0x40407c
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.CRYPT32.dll_CertVerifyTimeValidity]
test eax, eax
jne 0x40407c
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x40408b
mov eax, dword [ebp - 0x54]
or eax, 0x20
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00405b60
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jne 0x4040bc
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CRYPT32.dll_CertVerifyTimeValidity]
test eax, eax
jne 0x4040bc
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x4040cb
mov edx, dword [ebp - 0x54]
or edx, 0x10
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00405820
add esp, 4
test eax, eax
jne 0x4040e4
mov ecx, dword [ebp - 0x54]
or ecx, 8
mov dword [ebp - 0x54], ecx
cmp dword [ebp + 0xc], 0
je 0x404114
cmp dword [ebp - 0x54], 0
jne 0x404114
cmp dword [ebp - 0x30], 0
je 0x404108
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x404114
mov ecx, dword [ebp - 0x54]
or ecx, 0x800000
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.00404125
jmp 0x4041b8
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret