Function at 0x4bac40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5fee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov esi, dword [esi]
mov dword [ebp - 0x1c], eax
call fcn.00401bb0
mov ecx, eax
test ecx, ecx
je 0x4bae4c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4bacc1
test esi, 0xffff0000
jne 0x4bacb1
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.004062a0
jmp 0x4baccd
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bacb6
sub ecx, edx
jmp 0x4bacc3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00401820
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4bad25
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 8], eax
lea ecx, [eax - 1]
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x4bad27
push dword [ebp + 8]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp + 8]
je 0x4bad27
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
cmp dword [edi], 0
jne 0x4bad6b
sub esp, 8
mov ecx, edi
push 0x50f9c8
call fcn.004bbe80
test eax, eax
js 0x4badec
mov edi, dword [edi]
test edi, edi
je 0x4bae60
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0xfc]
test eax, eax
jns 0x4bad68
push 0x50f9e8
push edi
push eax
call fcn.004e2c00
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4badec
cmp dword [edi], 0
je 0x4badec
mov eax, 8
push esi
mov word [ebp - 0x2c], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4bad9c
test esi, esi
jne 0x4bae56
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
mov edi, dword [edi]
test edi, edi
je 0x4bae60
movups xmm0, xmmword [ebp - 0x2c]
mov ecx, dword [edi]
lea eax, [ebp - 0x14]
push eax
sub esp, 0x10
mov dword [ebp - 0x14], 0
mov eax, esp
push edi
movups xmmword [eax], xmm0
call dword [ecx + 0xe8]
test eax, eax
jns 0x4bade1
push 0x50f9e8
push edi
push eax
call fcn.004e2c00
cmp word [ebp - 0x14], 0xffff
mov byte [ebp + 0xb], 1
je 0x4badf0
mov byte [ebp + 0xb], 0
test byte [ebp - 0x18], 1
je 0x4bae00
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xb], 1
jne 0x4bae15
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bae37
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f30
push 0x8007000e
call fcn.004e2be0
push 0x80004003
call fcn.004e2be0
int3