Function at 0x411f31
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov word [ebp - 0x54], di
call fcn.00402783
push 1
lea ecx, [ebp - 0x70]
call fcn.00402783
lea ebx, [esi + 0x1e8]
push 0x40
lea eax, [ebp - 0xc4]
push ebx
push eax
mov dword [ebp - 0x84], esi
call fcn.00420f70
add esp, 0xc
add esi, 0x230
push str.C:CodeBasesisdev_srcRuntimeInstallScriptSetupNewSetupDLL.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push ebx
call fcn.0042299c
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x41227b
mov ebx, dword [ebp - 0x3c]
lea edx, [ebp - 0xc]
push edx
push 0x44c7c8
mov eax, dword [ebx + 0x358]
push eax
mov ecx, dword [eax]
call dword [ecx]
push 0x4b5
push eax
mov ecx, ebx
call fcn.004122d3
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push 0x44d378
mov ecx, dword [eax]
push 0x4473bc
push eax
call dword [ecx + 0xc]
push 0x4b6
push eax
mov ecx, ebx
call fcn.004122d3
push str.DeinstallSetReference
lea ecx, [ebp - 0x80]
mov word [ebp - 0x80], di
call fcn.004113c9
lea edx, [ebp - 0x54]
lea esi, [ebp - 0x80]
push edx
mov eax, dword [ebp - 8]
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
test eax, eax
lea eax, [ebp - 0x80]
push eax
setge byte [ebp - 1]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 1], 0
je 0x412159
lea eax, [ebp - 0x40]
push 0x4be
push eax
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
push eax
mov ecx, ebx
call fcn.004122d3
lea eax, [ebp - 0x1c]
push 0x4bf
push eax
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
push eax
mov ecx, ebx
call fcn.004122d3
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jg 0x412159
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x44]
push 0x4c5
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
push eax
mov ecx, ebx
call fcn.004122d3
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], eax
call fcn.00402c9d
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.00402c9d
mov eax, edi
and al, 0xfe
push eax
push dword [ebp - 0x34]
call esi
lea ecx, [ebp - 0x38]
call fcn.00402c9d
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], eax
call fcn.00402c9d
push edi
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x14], 0xffffffff
jne 0x41213c
cmp dword [ebp - 0x18], 0x20
je 0x4121b1
cmp dword [ebp - 0x18], 0x21
je 0x4121b1
cmp dword [ebp - 0x18], 0x4c8
je 0x4121b1
cmp dword [ebp - 0x14], 0xffffffff
je 0x41214a
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41214a
push dword [ebp - 0x14]
call eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jle 0x41207e
lea eax, [ebp - 0xc4]
push 0x40
push eax
mov eax, dword [ebp - 0x84]
add eax, 0x1e8
push eax
call fcn.00420f70
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00402852
lea ecx, [ebp - 0x38]
call fcn.00402852
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
test eax, eax
je 0x41219d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4121aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebx + 0x1e0]
push 0
lea eax, [ebp - 0x70]
push 0xffffffffffffffff
push eax
push 0x9007
call fcn.00419d4a
lea ecx, [ebp - 0x38]
call fcn.00402c9d
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x70]
call fcn.00402c9d
push esi
lea eax, [ebp - 0x4ac]
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebx + 0x1e4]
add esp, 0xc
cmp byte [ebx + 0x1f2], 0
jne 0x412220
cmp byte [ebx + 0x1f3], 0
jne 0x412220
add ebx, 0x234
push 0x30
lea eax, [ebp - 0x4ac]
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0xc4]
push 0x40
push eax
mov eax, dword [ebp - 0x84]
add eax, 0x1e8
push eax
call fcn.00420f70
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00402852
lea ecx, [ebp - 0x38]
call fcn.00402852
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
test eax, eax
je 0x412264
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412271
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80042000
jmp 0x4121ac
lea eax, [ebp - 0xc4]
push 0x40
push eax
mov eax, dword [ebp - 0x84]
add eax, 0x1e8
push eax
call fcn.00420f70
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00402852
lea ecx, [ebp - 0x38]
call fcn.00402852
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4122bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x4122cc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4121ac