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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [ebp - 0xa4]
lea ebx, [esi + 4]
xor edi, edi
push ebx
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov word [ebp - 0x48], di
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x64], esi
call fcn.004072b0
add esp, 0xc
add esi, 0x4c
push str.D:is6Code_5EXTSetup_setup.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
push edi
push ebx
call fcn.00407620
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
jne 0x4059d3
mov ebx, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
push edx
push 0x40a2d0
mov eax, dword [ebx + 0x558]
push eax
mov ecx, dword [eax]
call dword [ecx]
push 0x3c8
push eax
mov ecx, ebx
call fcn.00405a4a
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push 0x40a550
mov ecx, dword [eax]
push 0x408288
push eax
call dword [ecx + 0xc]
push 0x3c9
push eax
mov ecx, ebx
call fcn.00405a4a
push str.DeinstallSetReference
lea ecx, [ebp - 0x60]
mov word [ebp - 0x60], di
call fcn.0040514d
lea edx, [ebp - 0x48]
lea esi, [ebp - 0x60]
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]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
lea eax, [ebp - 0x60]
push eax
setge byte [ebp - 1]
call edi
cmp byte [ebp - 1], 0
je 0x4058c8
lea eax, [ebp - 0x4c]
push 0x3d1
push eax
push 1
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
push eax
mov ecx, ebx
call fcn.00405a4a
lea eax, [ebp - 0x38]
push 0x3d2
push eax
push 1
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
push eax
mov ecx, ebx
call fcn.00405a4a
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
jg 0x4058c8
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x1c]
push 0x3d7
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
push eax
mov ecx, ebx
call fcn.00405a4a
lea ecx, [ebp - 0x1c]
call fcn.00406c28
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x50], eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406c28
push eax
call esi
xor eax, eax
lea ecx, [ebp - 0x1c]
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
call fcn.00406c28
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA_1]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00406c28
push eax
call esi
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4058b0
cmp dword [ebp - 0x24], 0x20
je 0x405927
cmp dword [ebp - 0x24], 0x21
je 0x405927
cmp dword [ebp - 0x24], 0x4c8
je 0x405927
cmp dword [ebp - 0x20], 0xffffffff
je 0x4058b9
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x38]
jle 0x40580f
lea eax, [ebp - 0xa4]
push 0x40
push eax
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.004072b0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004016cb
push dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x18]
call fcn.004016cb
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x48]
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405913
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405920
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
push 0x9007
call fcn.00405a71
lea ecx, [ebp - 0x1c]
call fcn.00406c28
push eax
lea ecx, [ebp - 0x30]
call fcn.00406c28
push eax
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, 0x270
lea eax, [ebp - 0x48c]
push 0x30
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA_1]
lea eax, [ebp - 0xa4]
push 0x40
push eax
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.004072b0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004016cb
push dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x18]
call fcn.004016cb
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x48]
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4059bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4059c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80042000
jmp 0x405922
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + 0x574]
push eax
push RegQueryValueExA
call fcn.00405a71
lea eax, [ebp - 0xa4]
push 0x40
push eax
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.004072b0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004016cb
push dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x18]
call fcn.004016cb
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x405a36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x405a43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x405922