Function at 0x402e78
Capabilities:
Create directory
Create process on windows
Create process suspended
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x3b3]
mov byte [ebp - 0x3b4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xa4]
mov dword [ebp - 0xa8], ebx
push 0x40
rep stosd dword es:[edi], eax
lea edi, [esi + 4]
lea eax, [ebp - 0x64]
push edi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
call fcn.00404770
add esp, 0xc
add esi, 0x4c
push str.D:is6CodeXTSetup_setup.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push edi
call fcn.00404ae0
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x403141
mov edi, dword [ebp - 0xc]
cmp byte [edi + 0x22d], bl
je 0x402f36
lea eax, [ebp - 0x64]
push 0x40
push eax
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.00404770
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00403e8b
cmp dword [ebp - 0x20], ebx
je 0x40312c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], ebx
jmp 0x40312c
lea eax, [ebp - 4]
push 0x1a0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa8], 0x44
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
mov ecx, edi
call fcn.00403dcf
lea eax, [ebp - 0x10]
push 0x1a1
push eax
lea eax, [ebp - 0x1ac]
push eax
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov ecx, edi
call fcn.00403dcf
lea eax, [ebp - 0x1ac]
push str.InstallShieldengine6Intel_32_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x1ac], bl
lea esi, [ebp - 0x1ac]
je 0x40300a
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2af]
mov byte [ebp - 0x2b0], bl
cmp byte [esi], 0x5c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x402ffa
mov eax, esi
lea ecx, [ebp - 0x1ac]
sub eax, ecx
inc eax
inc eax
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x2b0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], bl
jne 0x402fb0
mov edi, dword [ebp - 0xc]
mov esi, 0x104
lea eax, [ebp - 0x4b8]
push esi
lea ecx, [edi + 0x24c]
push eax
call fcn.0040426a
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x403046
lea ecx, [edi + 0x24c]
call fcn.0040426a
push eax
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x4b8]
mov esi, str.IKernel.exe
push eax
push esi
push str.IKernel.ex_
push ebx
call sub.VERSION.dll_VerInstallFileA
test al, 1
mov dword [ebp - 8], eax
je 0x4030b6
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x5bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x5bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5bc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x4030d0
test byte [ebp - 8], 0x84
jne 0x4030d0
push 0x1c3
mov ecx, edi
push dword [ebp - 8]
call fcn.00403dcf
lea eax, [ebp - 0x1ac]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1ac]
push str._RegServer
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x2710
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x64]
push 0x40
push eax
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.00404770
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00402e51
cmp dword [ebp - 4], ebx
je 0x40313a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 0x574]
push eax
push 0x9009
call fcn.00403df6
lea eax, [ebp - 0x64]
push 0x40
push eax
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.00404770
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00402e51
cmp dword [ebp - 4], ebx
je 0x403180
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40313c