Function at 0x417020
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 0x4560f3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x46e018]
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 0x417473
cmp dword [edi + 0xc], 0
jne 0x4170e0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 0x4583f0
push 1
push 0
push 0x4583c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x417473
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x417473
cmp dword [edi + 0xc], esi
je 0x4170d7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], esi
test ecx, ecx
je 0x4170d4
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 0x417100
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00402a20
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.004134b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00412cf0
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 0x417498
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 0x417192
test esi, esi
jne 0x41749e
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 0x4171cf
mov esi, 0x80004005
jmp 0x41738c
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 0x417218
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x417218
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 0x41722e
mov esi, 0x80004005
jmp 0x41737b
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x68], esi
test esi, esi
je 0x4174bb
jmp 0x4171f2
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 0x417365
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 0x417365
xor edi, edi
cmp dword [ebp - 0x70], edi
jle 0x417365
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 0x417354
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 0x41734b
push dword [ebp - 0x8c]
push dword [ebp - 0x64]
call fcn.0043a9c1
add esp, 8
test eax, eax
je 0x417324
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 0x417313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
mov eax, 3
cmp edi, dword [ebp - 0x70]
jl 0x417280
jmp 0x417365
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 0x41736a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41736a
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 0x417365
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 0x41737b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x41738c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x41739d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4173d7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4173cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174c5
push edx
push ecx
call fcn.0042dc50
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 0x417425
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41741b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174c5
push edx
push ecx
call fcn.0042dc50
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 0x41746f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174c5
push edx
push ecx
call fcn.0042dc50
add esp, 8
mov eax, esi
jmp 0x417478
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.0042dc42
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push eax
call fcn.00410440
mov eax, 0xa
mov dword [ebp - 0x80], 0x8007000e
push 0x8007000e
mov word [ebp - 0x88], ax
call fcn.00410440
push 0x8007000e
call fcn.00410440
call fcn.0043276f
int3