Function at 0x4039e7
Capabilities:
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa60
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x2c], edi
cmp byte [edi + 0x22f], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
je 0x403a42
lea ecx, [ebp - 4]
call fcn.00404665
lea ecx, [ebp - 0x24]
call fcn.004016a4
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x403a38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jmp 0x403db6
lea ebx, [edi + 4]
push 0x40
lea eax, [ebp - 0x88]
push ebx
push eax
mov dword [ebp - 0x48], edi
call fcn.00404f80
add esp, 0xc
add edi, 0x4c
push str.D:is6Code_5EXTSetup_setup.cpp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push ebx
call fcn.004052f0
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
jne 0x403dc5
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
push edx
push 0x407260
mov eax, dword [ebx + 0x558]
push eax
mov ecx, dword [eax]
call dword [ecx]
push 0x2c0
push eax
mov ecx, ebx
call fcn.0040443f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push 0x407240
mov ecx, dword [eax]
push 0x406580
push eax
call dword [ecx + 0xc]
push 0x2c1
push eax
mov ecx, ebx
call fcn.0040443f
mov edi, 0x104
lea eax, [ebp - 0x678]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str._DISK1TARGET__
lea ecx, [ebp - 0x28]
call fcn.00403e31
lea eax, [ebp - 0x678]
push 0xffffffffffffffff
push eax
call fcn.00401665
pop ecx
mov dword [ebp - 0x38], eax
pop ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], esi
call fcn.00404b26
mov esi, dword [eax]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004016f5
lea ecx, [ebp - 0x40]
call fcn.004016a4
push dword [ebp - 0x44]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x34]
call fcn.004016a4
push dword [ebp - 0x38]
call esi
push str.RUN_ONCE_PROGRAM
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 4]
push 0x2d2
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
mov ecx, ebx
call fcn.0040443f
lea eax, [ebp - 0x1c]
push 0x2d3
push eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0
push str.CommonFilesDir
push dword [ebp - 4]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov ecx, ebx
call fcn.0040443f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18c]
push str.InstallShieldengine6Intel_32_
push eax
call ebx
lea eax, [ebp - 0x18c]
push edi
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x403cd3
and byte [ebp - 5], al
and byte [ebp - 0x574], al
xor edi, edi
cmp dword [ebp - 4], edi
je 0x403bf7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsRUNDLL32.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x3e8
push eax
lea eax, [ebp - 0x574]
push eax
push edi
push edi
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x574]
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
test eax, eax
jle 0x403c76
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [ebp + eax - 0x574]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403c72
inc dword [ebp - 0xc]
lea eax, [ebp - 0x574]
push eax
call edi
cmp dword [ebp - 0xc], eax
jl 0x403c43
jmp 0x403c76
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
jne 0x403ccc
cmp byte [ebp - 0x574], 0
je 0x403c93
lea eax, [ebp - 0x574]
push 0x4073d8
push eax
call ebx
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x574]
push eax
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x574]
push eax
call edi
push eax
lea eax, [ebp - 0x574]
push eax
push 2
push 0
push str.Path
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
and byte [ebp - 0x18c], 0
lea ecx, [ebp - 0x28]
call fcn.00404a3b
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0xa60]
push str.RunDll32__sCtor.dll_LaunchSetup___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa60]
push 0xffffffffffffffff
push eax
call fcn.00401665
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 0x18
mov dword [ebp - 0x18], eax
push str.UNINSTALL_STRING
call edi
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0xa60]
push str._uninst
push eax
call ebx
lea eax, [ebp - 0xa60]
push 0xffffffffffffffff
push eax
call fcn.00401665
pop ecx
mov ebx, eax
pop ecx
push str.UNINST
call edi
mov edi, eax
mov eax, dword [ebp - 0x10]
push ebx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push edi
call esi
push ebx
call esi
lea eax, [ebp - 0x88]
push 0x40
push eax
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
call fcn.00404f80
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x403d97
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004016a4
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403db1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403dbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + 0x574]
push eax
push 0x900d
call fcn.00404466
lea eax, [ebp - 0x88]
push 0x40
push eax
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
call fcn.00404f80
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x403e02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x24]
call fcn.004016a4
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x403e20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x403e2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x403dc0