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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262e7
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x64]
call fcn.00406480
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0x4e84
lea ecx, [ebp - 0x6c]
call fcn.00406440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00406440
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], 0x7d0
lea ecx, [ebp - 0x54]
call fcn.00406440
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406480
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00406440
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.00406d10
push 0
push str.msiexec.exe
lea ecx, [ebp - 0x70]
call fcn.00405850
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jle 0x402879
mov ecx, dword [ebp - 0x74]
add ecx, 0xb
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405b40
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x78]
call fcn.00406520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.00406500
mov eax, dword [ebp - 0x74]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x70]
call fcn.004056b0
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404c40
add esp, 4
push 0x3c
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.0050c850
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], str.runas
lea ecx, [ebp - 0x78]
call fcn.00406580
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x70]
call fcn.00406580
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x54]
call fcn.00406580
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push str.Start_ShellExecuteEx:___File__s___Parameters__s
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x18
push str.________________________________________________________________________________
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x10
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x28], 0x20
jg 0x402bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.004054f0
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00406520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9c]
call fcn.00406500
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x80]
push eax
push str.error_by_ShellExecuteEx:__GetLastError_ReturnCode__d___description__s
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00407220
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.00406580
push eax
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
sub eax, 2
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0x1e
ja case.0x4029f5.2
mov ecx, dword [ebp - 0xbc]
movzx edx, byte [ecx + 0x402fec]
jmp dword [edx*4 + 0x402fbc]
push str.__File_not_found.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__Path_not_found.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__Access_denied.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__Out_of_memory.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__Dynamic_link_library_not_found.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__Cannot_share_an_open_file.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__File_association_information_not_complete.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__DDE_operation_timed_out.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__DDE_operation_failed.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__DDE_operation_is_busy.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
jmp case.0x4029f5.2
push str.__File_association_not_available.
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00406500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00406500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406500
mov eax, dword [ebp - 0xa0]
jmp 0x402faa
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0x36ee80
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x4c], 0x103
je 0x402c61
push str.GetExitCodeProcess:__nRet_STILL_ACTIVE
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00406500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00406500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406500
mov eax, dword [ebp - 0xa4]
jmp 0x402faa
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402ecf
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x68]
jb 0x402ecd
push 0x536e60
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov ecx, 0xea60
div ecx
push eax
push str.MSI_Starter_timeout_after__d_minutes
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0
push 0x588f50
call fcn.00416d20
add esp, 0x14
push 0x536e60
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x7c], 0
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x8c]
call fcn.00406480
mov byte [ebp - 4], 8
mov edx, dword [str.StarterTimeout]
push edx
lea ecx, [ebp - 0x84]
call fcn.00406480
mov byte [ebp - 4], 9
push 0x537450
lea ecx, [ebp - 0x90]
call fcn.00406480
mov byte [ebp - 4], 0xa
push 0
lea eax, [ebp - 0x88]
push eax
push 0
push 0x2001f
push 0
push 0x536e60
push 0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00406590
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x402e43
lea ecx, [ebp - 0x90]
call fcn.004065e0
lea ecx, [eax + eax + 2]
push ecx
push 0
lea ecx, [ebp - 0x90]
call fcn.00406590
push eax
push 1
push 0
lea ecx, [ebp - 0x84]
call fcn.00406580
push eax
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x94], 0
je 0x402e0f
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
push str.can_not_set_Registry:__s__s__ino_HKLM_s___ReturnValue__d
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x20
jmp 0x402e41
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
push str.____Set_Registry:__s__s__in_HKLM_s
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x1c
jmp 0x402e7c
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x84]
push edx
push str.RegCreateKeyEx_failed:_cannot_set__s__s__in_HKLM_s___ReturnValue__d
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 0
push 0x588f50
call fcn.00416d20
add esp, 0x20
push 0x536e60
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 7
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x50], 0x4e85
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x90]
call fcn.00406500
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.00406500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00406500
jmp 0x402ed6
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x4c], 0x103
jne 0x402efe
cmp dword [ebp - 0x5c], 0
je 0x402c61
cmp dword [ebp - 0x4c], 0x103
je 0x402f0f
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
jmp 0x402f25
cmp dword [ebp - 0x5c], 0
je 0x402f25
cmp dword [ebp - 0x4c], 0x103
jne 0x402f25
mov dword [ebp - 0x50], 0x4eea
mov eax, dword [ebp - 0x50]
push eax
push str.End_ShellExecuteEx:__MSI_Component_Setup___ReturnValue__d
lea ecx, [ebp - 0x64]
call fcn.00406580
push eax
push 9
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00406500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00406500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
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