Function at 0x46a5a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x496d8a
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov edi, ecx
push edi
mov dword [esp + 0x48], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a725
mov esi, ebp
call fcn.0046a9b0
test eax, eax
jl 0x46a725
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0x80004005
call fcn.00415f20
lea ecx, [esp + 0x48]
push ecx
xor esi, esi
lea ecx, [esp + 0x84]
mov dword [esp + 0xac], esi
call fcn.004665b0
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], 1
call fcn.00465c20
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x80]
mov byte [esp + 0xa8], 3
call fcn.0041ba20
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x30], si
call ebx
push edi
mov word [esp + 0x30], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, esi
mov dword [esp + 0x34], eax
jne 0x46a6ae
cmp edi, esi
je 0x46a6ae
push 0x8007000e
mov word [esp + 0x30], 0xa
mov dword [esp + 0x38], 0x8007000e
call fcn.00401030
mov byte [esp + 0xa8], 4
mov edx, dword [ebp + 0xc]
mov ebp, dword [esp + 0x2c]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov ebp, dword [esp + 0x44]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x24]
push edx
call ecx
lea edx, [esp + 0x2c]
push edx
mov edi, eax
call ebx
cmp edi, esi
jge 0x46a72f
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x46a707
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.00432550
lea ecx, [esp + 0x80]
call fcn.00432550
lea ecx, [esp + 0x48]
call fcn.00432550
mov eax, 0x80004005
jmp 0x46a971
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 5
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x64]
call fcn.0041ba20
cmp eax, esi
jne 0x46a798
xor eax, eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xac], 6
mov ecx, dword [edi]
push eax
mov eax, dword [ecx + 0x30]
push edi
call eax
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004013e0
cmp edi, esi
jge 0x46a7b1
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x46a6ef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x46a6ef
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x46a752
push 0x8007000e
call fcn.00401030
mov dword [esp + 0x20], esi
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
cmp eax, esi
jge 0x46a7ec
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x46a777
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x46a777
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, esi
jl 0x46a7d2
xor edi, edi
cmp dword [esp + 0x28], esi
jle 0x46a907
mov dword [esp + 0x1c], esi
mov ecx, edi
mov word [esp + 0x2c], 3
mov dword [esp + 0x34], ecx
mov byte [esp + 0xa8], 9
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx]
lea eax, [esp + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x44]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
lea eax, [esp + 0x2c]
push eax
setl bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
jne 0x46a8ef
mov dword [esp + 0x14], esi
mov byte [esp + 0xa8], 0xa
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, esi
jl 0x46a8e6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004722da
add esp, 8
test eax, eax
je 0x46a8d6
lea ecx, [esp + 0x14]
call fcn.004013e0
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x46a8c7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add edi, 1
cmp edi, dword [esp + 0x28]
jl 0x46a811
jmp 0x46a907
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x14]
call fcn.004013e0
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x46a907
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x46a91f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x46a937
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x46a94f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.00432550
lea ecx, [esp + 0x80]
call fcn.00432550
lea ecx, [esp + 0x48]
call fcn.00432550
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472710
add esp, 0x98
ret 8