Function at 0x402210
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526261
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x78]
call fcn.00406480
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0x4e84
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x74], 0x7d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406480
mov byte [ebp - 4], 1
push 0x44
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.0050c850
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
xor edx, edx
mov word [ebp - 0x34], dx
xor eax, eax
mov word [ebp - 0x32], ax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
push ecx
push str.Start_CreateProcess:__called_line:__s
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x14
push str._____________________________________
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x400
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
call fcn.00406590
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4023d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
push str.error_by_CreateProcess:__d
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406500
mov eax, dword [ebp - 0xa0]
jmp 0x402749
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x36ee80
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x68], 0x103
je 0x402448
push str.GetExitCodeProcess:__nRet_STILL_ACTIVE
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406500
mov eax, dword [ebp - 0xa4]
jmp 0x402749
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4026a8
mov edx, dword [ebp - 0x88]
add edx, dword [ebp - 0x74]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x80]
jb 0x4026a6
push 0x536e60
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [ebp - 0x88]
xor edx, edx
mov ecx, 0xea60
div ecx
push eax
push str.MSI_Starter_timeout_after__d_minutes
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 0
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x6c], 0x4e85
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x94]
call fcn.00406480
mov byte [ebp - 4], 2
mov edx, dword [str.StarterTimeout]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00406480
mov byte [ebp - 4], 3
push 0x537450
lea ecx, [ebp - 0x98]
call fcn.00406480
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0x2001f
push 0
push 0x536e60
push 0
push 0
lea ecx, [ebp - 0x94]
call fcn.00406590
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x402623
lea ecx, [ebp - 0x98]
call fcn.004065e0
lea ecx, [eax + eax + 2]
push ecx
push 0
lea ecx, [ebp - 0x98]
call fcn.00406590
push eax
push 1
push 0
lea ecx, [ebp - 0x8c]
call fcn.00406580
push eax
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x9c], 0
je 0x4025ef
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push str.can_not_set_Registry:__s__s__ino_HKLM_s___ReturnValue__d
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x20
jmp 0x402621
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push str.____Set_Registry:__s__s__in_HKLM_s
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x1c
jmp 0x40265c
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
push str.RegCreateKeyEx_failed:_cannot_set__s__s__in_HKLM_s___ReturnValue__d
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 0
push 0x588f50
call fcn.00416d20
add esp, 0x20
push 0x536e60
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00406500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00406500
jmp 0x4026af
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x68], 0x103
jne 0x4026d7
cmp dword [ebp - 0x70], 0
je 0x402448
cmp dword [ebp - 0x68], 0x103
je 0x4026e8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
jmp 0x4026fe
cmp dword [ebp - 0x70], 0
je 0x4026fe
cmp dword [ebp - 0x68], 0x103
jne 0x4026fe
mov dword [ebp - 0x6c], 0x4eea
mov eax, dword [ebp - 0x6c]
push eax
push str.End_CreateProcess:__MSI_Component_Setup___ReturnValue___d
lea ecx, [ebp - 0x78]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406500
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret