Function at 0x403e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x60c9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
mov ecx, edi
call fcn.00402e90
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x403ff6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403ff6
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x403f4f
mov dword [ebp - 0x14], ebx
push 0x17
push ebx
mov dword [ebp - 4], ebx
push 0x55caa4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403cd0
cmp eax, ebx
jge 0x403f66
push 0x17
push ebx
push 0x55ca94
lea ecx, [ebp - 0x14]
call fcn.00403cd0
cmp eax, ebx
jge 0x403f66
push ebx
push eax
call fcn.0054a4f0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x3c]
call fcn.00403ae0
mov eax, 0x403f39
ret
mov dword [ebp - 4], 0xffffffff
je 0x403f4f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004004
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
sete al
mov dword [ebp - 4], ebx
cmp al, bl
je 0x403f82
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jmp 0x403f3e
cmp ecx, ebx
jne 0x403f90
push 0x80004003
call fcn.0054a450
push ebx
call fcn.00403bb0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403a90
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, ebx
jne 0x403fb4
push 0x80004003
call fcn.0054a450
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b50
lea ecx, [ebp - 0x2c]
push ecx
movzx esi, ax
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp si, bx
jne 0x40400d
lea ecx, [ebp - 0x14]
call fcn.00403be0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403ff6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00402e90
mov eax, dword [ebp - 0x14]
cmp eax, ebx
sete cl
cmp cl, bl
je 0x404035
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403ff6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x403ff6
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00403c10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, ebx
jne 0x404059
push 0x80004003
call fcn.0054a450
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], bl
call fcn.00403dc0
mov eax, dword [ebp - 0x18]
cmp eax, ebx
sete cl
cmp cl, bl
sete cl
mov byte [ebp - 4], 5
cmp cl, bl
je 0x4040b4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x40408f
push 0x80004003
call fcn.0054a450
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00403770
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00403c10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 7
cmp ecx, ebx
jne 0x4040d8
push 0x80004003
call fcn.0054a450
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 5
call fcn.00403dc0
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
sete cl
cmp cl, bl
sete cl
mov byte [ebp - 4], 8
cmp cl, bl
je 0x404134
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x40410f
push 0x80004003
call fcn.0054a450
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00403770
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x14], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40415d
lea ecx, [ebp - 0x14]
call fcn.00403be0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40415d
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
lea esi, [eax - 0x7fffbffb]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40418a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40419c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4041b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret