Function at 0x4160e0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4550e3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416533
cmp dword [edi + 0xc], 0
jne 0x4161a0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 0x4573e0
push 1
push 0
push 0x4573b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x416533
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x416533
cmp dword [edi + 0xc], esi
je 0x416197
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], esi
test ecx, ecx
je 0x416194
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [ebp - 0x68]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x64]
mov ecx, esi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4161c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.004029b0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00412590
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00411dd0
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x416558
mov eax, 8
push esi
mov word [ebp - 0x88], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x416252
test esi, esi
jne 0x41655e
mov byte [ebp - 4], 4
lea eax, [ebp - 0x78]
mov ecx, dword [edi + 0xc]
movups xmm0, xmmword [ebp - 0x88]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x24]
mov esi, eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x41628f
mov esi, 0x80004005
jmp 0x41644c
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edi, dword [ebp - 0x78]
jb 0x4162d8
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4162d8
xor esi, esi
mov dword [ebp - 0x68], esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0x30]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x4162ee
mov esi, 0x80004005
jmp 0x41643b
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x68], esi
test esi, esi
je 0x41657b
jmp 0x4162b2
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x416425
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x416425
xor edi, edi
cmp dword [ebp - 0x70], edi
jle 0x416425
mov eax, 3
nop word [eax + eax]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x6c]
movups xmm0, xmmword [ebp - 0x88]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x416414
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x41640b
push dword [ebp - 0x8c]
push dword [ebp - 0x64]
call fcn.00439a84
add esp, 8
test eax, eax
je 0x4163e4
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4163d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
mov eax, 3
cmp edi, dword [ebp - 0x70]
jl 0x416340
jmp 0x416425
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x41642a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41642a
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x416425
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x41643b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x41644c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x41645d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x416497
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41648d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416585
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x4164e5
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4164db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416585
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x41652f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416525
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416585
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov eax, esi
jmp 0x416538
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push eax
call fcn.0040f2e0
mov eax, 0xa
mov dword [ebp - 0x80], 0x8007000e
push 0x8007000e
mov word [ebp - 0x88], ax
call fcn.0040f2e0
push 0x8007000e
call fcn.0040f2e0
call fcn.0043182f
int3