Function at 0x413330
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43ff60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413373
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov ecx, edi
mov dword [esp + 0x50], 0
call fcn.0040d190
cmp byte [edi + 0x130], 0
je 0x413e88
mov ecx, edi
call fcn.00413230
call fcn.0041890e
xor ecx, ecx
cmp dword [esp + 0x58], ecx
je 0x4138f2
test eax, eax
setne cl
test ecx, ecx
jne 0x4133ca
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.msi.dll
mov byte [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x4134cb
push str.Comp_Inst_
lea ecx, [esp + 0x1c]
call fcn.00406a30
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00406540
mov ecx, dword [esp + 0x18]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x413431
push 0
lea ecx, [esp + 0x1c]
call fcn.00407500
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx + 0x68]
push edx
lea esi, [edi + 0x1c]
push str.___Will_start_Custom_Action__s_...
push 0xa
push esi
call eax
add esp, 0x10
push str.MsiDoActionW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x413478
push 0
lea ecx, [esp + 0x1c]
call fcn.00407500
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x4134a6
push 0
lea ecx, [esp + 0x1c]
call fcn.00407500
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x68]
push ecx
push edx
push str.Custom_Action__s_return__d
push 0xa
push esi
call eax
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4134d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4134ef
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x50], 2
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41351e
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [edi + 0x16c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 3
call fcn.00407040
mov eax, dword [edi + 0x68]
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00404840
push eax
lea eax, [esp + 0x64]
push 0x442694
mov bl, 4
push eax
mov byte [esp + 0x64], bl
call fcn.00406010
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 5
call fcn.00406540
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
mov edx, dword [edi + 0x168]
lea ecx, [esp + 0x24]
push ecx
push str.Transforms
push ebp
push edx
call fcn.00404340
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
add esp, 0x10
test ecx, ecx
jle 0x41389b
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x413613
push 0
lea ecx, [esp + 0x28]
call fcn.00407500
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 0x68]
push eax
lea esi, [edi + 0x1c]
push str.Transformfile_read_from_registry:__s
push 0xa
push esi
call edx
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
add esp, 0x10
or ecx, eax
jge 0x413648
push 0
lea ecx, [esp + 0x24]
call fcn.00407500
mov ebp, dword [esp + 0x20]
mov ecx, dword [edi + 0x168]
lea eax, [esp + 0x14]
push eax
push 0x30007
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4136b3
mov edx, dword [esp + 0x14]
push str.Transforms
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, dword [esi]
add ebp, 0x68
test eax, eax
mov dword [esp + 0x1c], eax
push 0
lea ecx, [esp + 0x24]
je 0x41369e
call fcn.00406ab0
push eax
mov eax, dword [ebp]
push str.Couldn
push 0
push esi
call eax
jmp 0x4136d1
call fcn.00406ab0
mov ecx, dword [ebp]
push eax
push str._Transform_deleted_successfully__in:__s_
push 0xa
push esi
call ecx
jmp 0x4136d1
mov ebp, dword [esi]
push 0
lea ecx, [esp + 0x24]
add ebp, 0x68
call fcn.00406ab0
mov edx, dword [ebp]
push eax
push 0x449b70
push 0
push esi
call edx
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4136f9
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
push ecx
mov ebx, 6
push 0
mov byte [esp + 0x58], bl
call fcn.004017d0
add esp, 8
cmp eax, 1
jne 0x4137a3
mov edx, dword [esp + 0x24]
push ebx
push edx
lea eax, [esp + 0x60]
push eax
call section..text
add esp, 0xc
push 0x442694
lea ecx, [esp + 0x5c]
call fcn.00405cf0
mov ebp, dword [esi]
push 0
lea ecx, [esp + 0x5c]
add ebp, 0x68
call fcn.00406ab0
mov ecx, dword [ebp]
push eax
push str._Path_to_delete:__s
push 0xa
push esi
call ecx
mov edx, dword [esp + 0x68]
push edx
call fcn.00404c20
mov eax, dword [esp + 0x38]
push eax
push 0
call fcn.004017d0
add esp, 0x1c
test eax, eax
je 0x4137a3
mov ebp, dword [esi]
push 0
lea ecx, [esp + 0x5c]
add ebp, 0x68
call fcn.00406ab0
mov ecx, dword [ebp]
push eax
push str._Path_could_not_be_deleted:__s
push 2
push esi
call ecx
add esp, 0x10
push str.Installer
lea edx, [edi + 0x138]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00405f60
lea ecx, [edi + 0x68]
push ecx
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x68], 7
call fcn.00405eb0
add esp, 0x18
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 8
call fcn.00407040
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x50], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00404c20
mov edx, dword [esp + 0x5c]
push edx
push 3
call fcn.004017d0
add esp, 0xc
test eax, eax
je 0x413866
mov ebp, dword [esi]
push 0
lea ecx, [esp + 0x5c]
add ebp, 0x68
call fcn.00406ab0
push eax
mov eax, dword [ebp]
push str._Path_could_not_be_deleted:__s
push 2
push esi
call eax
add esp, 0x10
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x50], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4138c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x50], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138e6
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x4140a2
test eax, eax
setne cl
test ecx, ecx
jne 0x413905
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov ecx, dword [edi + 0x114]
test ecx, ecx
lea esi, [edi + 0x114]
mov byte [esp + 0x50], 9
jne 0x41392e
xor eax, eax
jmp 0x413948
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x413933
sub eax, ebx
sar eax, 1
js 0x413d56
cmp eax, dword [ecx - 8]
jg 0x413d56
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov ecx, esi
call fcn.00405c10
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x41399f
push str.REINSTALLALL
push eax
call fcn.00426386
add esp, 8
test eax, eax
je 0x41399f
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jle 0x41399f
mov edx, dword [edi + 0x1c]
lea eax, [edi + 0x1c]
push str._Component_will_be_installed_using_REINSTALL_mode.
push 8
push eax
mov eax, dword [edx + 0x68]
call eax
add esp, 0xc
jmp 0x4139ab
push str._ALLUSERS1
mov ecx, esi
call fcn.00405910
lea ecx, [edi + 0x110]
push ecx
lea edx, [esp + 0x1c]
push str.msiexec.exe__i__
push edx
call fcn.00406010
lea ecx, [edi + 0x54]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x68], 0xa
call fcn.00405eb0
push 0x4487b4
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x74], 0xb
call fcn.00405f60
lea ecx, [edi + 0x4c]
push ecx
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x80], 0xc
call fcn.00405eb0
push 0x444b44
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x8c], 0xd
call fcn.00405f60
push esi
push eax
lea ecx, [esp + 0x7c]
mov bl, 0xe
push ecx
mov byte [esp + 0x98], bl
call fcn.00405eb0
add esp, 0x48
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0xf
call fcn.00407040
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413a64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ad3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x50], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x140]
lea esi, [edi + 0x140]
xor ebp, ebp
cmp dword [ecx - 0xc], ebp
je 0x413bb5
push str._TIMEOUT
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00405f60
push esi
push eax
lea ecx, [esp + 0x4c]
mov bl, 0x10
push ecx
mov byte [esp + 0x68], bl
call fcn.00405eb0
add esp, 0x18
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0x11
call fcn.00407040
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413b90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x50], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x58]
cmp edx, ebp
jne 0x413bc1
xor eax, eax
jmp 0x413bdb
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x413bc6
sub eax, esi
sar eax, 1
js 0x413d56
cmp eax, dword [edx - 8]
jg 0x413d56
mov dword [edx - 0xc], eax
push str._ADS_CALLED_EXTERNAL1
lea ecx, [esp + 0x5c]
mov word [edx + eax*2], bp
call fcn.00405910
cmp dword [edi + 0x40], 1
jne 0x413c1b
push str._OVERINSTALLYES
lea ecx, [esp + 0x5c]
call fcn.00405910
push str._UPDATEMODE1
lea ecx, [esp + 0x5c]
call fcn.00405910
cmp byte [edi + 0x128], 0
je 0x413c32
push str._LOGGINGMAX1
lea ecx, [esp + 0x5c]
call fcn.00405910
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.0041890e
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x413c54
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebp
mov byte [esp + 0x54], 0x12
call fcn.004265cc
add esp, 4
push str._H:_M:_S
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.00406800
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 0x13
call fcn.00407040
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0x12
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx + 0x68]
push edx
lea ebp, [edi + 0x1c]
push str._Launch_installation:____s_
push 8
push ebp
call eax
mov eax, dword [edi + 0x50]
mov ecx, dword [esp + 0x68]
push eax
push ecx
call fcn.00401e80
mov edx, dword [ebp]
push 0x445d10
mov ebx, eax
mov eax, dword [edx + 0x68]
push 9
push ebp
mov dword [esp + 0x40], ebx
call eax
add esp, 0x24
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413d1a
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x40
or eax, ecx
mov byte [esp + 0x50], 0x14
jge 0x413d50
push 0x40
lea ecx, [esp + 0x28]
call fcn.00407500
mov esi, dword [esp + 0x24]
cmp dword [esi - 8], 0x40
jge 0x413d60
push 0x80070057
call fcn.00406210
push ebx
push 0x44488c
mov dword [esi - 0xc], 0x40
push esi
mov word [esi + 0x80], 0
call fcn.004276ca
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413d84
sub eax, edx
sar eax, 1
js 0x413d56
cmp eax, dword [esi - 8]
jg 0x413d56
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push str.SOFTWARESiemensShared_ToolsCompSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413e1b
mov ecx, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x413de2
push 0
lea ecx, [esp + 0x28]
call fcn.00407500
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx + 2]
push edx
push esi
push 1
push 0
push str.MsiReturn
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x68]
push esi
push str._MSI_returncode___s____0__OK_
push 8
push ebp
call edx
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push 4
push 0x4464d4
push 1
push 0
push str.Restart
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 0x12
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
jmp 0x4140a2
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413ead
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
lea ecx, [edi + 0x54]
push ecx
lea edx, [edi + 0x110]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x5c], 0x15
call fcn.00405eb0
add esp, 0xc
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0x16
call fcn.00407040
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x413f1a
xor eax, eax
jmp 0x413f35
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413f20
sub eax, edx
sar eax, 1
js 0x413d56
cmp eax, dword [ebx - 8]
jg 0x413d56
push ebx
mov dword [ebx - 0xc], eax
lea esi, [edi + 0x1c]
push str._Launch_Exe:__s
mov word [ebx + eax*2], 0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push 8
push esi
call edx
mov eax, dword [edi + 0x50]
push eax
push ebx
call fcn.004021f0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push eax
push str._Launch_returncode:__d
push 8
push esi
call edx
add esp, 0x28
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
jmp 0x413f90
cmp dword [esp + 0x24], 0
je 0x414097
cmp ebp, 0x927c0
jb 0x414036
mov eax, dword [esi]
mov ecx, dword [eax + 0x68]
push str._Timeout_while_waiting_on_componentsetup_..._
push 2
push esi
xor ebp, ebp
call ecx
add esp, 0xc
push str.5018
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0040d340
mov eax, dword [esp + 0x20]
push 0x12034
push 0x442b58
push eax
push ebp
mov byte [esp + 0x60], 0x17
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x414011
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push str.Timeout_launching_componentsetup__skip_by_User__
push 1
push esi
call edx
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x1c], 0x4e85
mov dword [esp + 0x24], ebp
call fcn.0040d5a0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push str.SOFTWARESiemensShared_ToolsCompSetup
push 0x80000002
add ebp, 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41408c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0x444894
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], 2
jne 0x413f90
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4140da
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x50], 0x18
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414109
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x50], 0x19
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414138
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x38]
push ecx
mov bl, 0x1a
mov ecx, edi
mov byte [esp + 0x54], bl
call fcn.0040ccc0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 0x1b
call fcn.00407040
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41418d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 0x68]
push ebx
lea esi, [edi + 0x1c]
push str.At_first__the_SetupSucceeded_Value_is:__s
push 0xa
push esi
call edx
lea eax, [esp + 0x38]
push eax
push str.AppResult
push str.SOFTWARESiemensShared_ToolsCompSetup
push 0x80000002
call fcn.00404340
lea ecx, [esp + 0x48]
push 0x4464d4
push ecx
call fcn.004060c0
mov edx, dword [esi]
add esp, 0x28
test al, al
je 0x4141ed
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x68]
push eax
push str._AppResult_value__s____1_would_be_OK_
push 8
push esi
call ecx
add esp, 0x10
jmp 0x4141fd
mov eax, dword [edx + 0x68]
push 0x44a290
push 8
push esi
call eax
add esp, 0xc
push 0x4464d4
push ebx
call fcn.004262f5
add esp, 8
test eax, eax
je 0x414251
push 0x44a28c
push ebx
call fcn.004262f5
add esp, 8
test eax, eax
je 0x414251
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x41423f
push 0
lea ecx, [esp + 0x28]
call fcn.00407500
mov ebx, dword [esp + 0x24]
push ebx
call fcn.00425f5c
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x4143a7
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x414342
push 0x4464d4
push eax
call fcn.004262f5
add esp, 8
test eax, eax
je 0x414342
mov edx, dword [esp + 0x28]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x68]
push edx
push str._Setup_finished_but_a_problem_was_encountered_in_a_called_related_process._ReturnCode:__s
push 1
push esi
mov dword [esp + 0x2c], 0xfffffff6
call eax
add esp, 0x10
push 3
push 0x44a1cc
lea ecx, [esp + 0x2c]
call fcn.004073e0
push 0x27
push str.SOFTWARESiemensShared_ToolsCompSetup
lea ecx, [esp + 0x60]
call fcn.004073e0
mov edx, dword [esp + 0x58]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4142d6
push 0
lea ecx, [esp + 0x5c]
call fcn.00407500
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414388
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx - 8]
mov ebp, dword [ebx - 0xc]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x41431b
push 0
lea ecx, [esp + 0x28]
call fcn.00407500
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea ecx, [ebp + ebp + 2]
push ecx
push ebx
push 1
push 0
push str.SetupSucceeded
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4143a7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41437e
cmp eax, 0xbc2
je 0x41437e
cmp eax, 0x669
je 0x41437e
cmp eax, 0xbc3
je 0x41437e
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push str._Setup_finished_but_an_unknown_problem_was_encountered_while_waiting.
push 1
push esi
mov dword [esp + 0x28], 0xfffffff6
call edx
add esp, 0xc
jmp 0x414294
mov dword [esp + 0x1c], 0
jmp 0x4143a7
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push eax
push str.Setup_finished_but_an_unknown_problem_encountered:__CompSetup_is_empty___Ret.code:__d_
push 1
push esi
call edx
mov ebx, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax + 0x68]
push ebx
push str._SetupSucceeded_Value__s___1_or_2_would_be_OK_
push 8
push esi
call ecx
add esp, 0x10
cmp byte [edi + 0x130], 0
je 0x414526
push 0x27
push str.SOFTWARESiemensShared_ToolsCompSetup
lea ecx, [esp + 0x60]
call fcn.004073e0
mov edx, dword [esp + 0x58]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4143f9
push 0
lea ecx, [esp + 0x5c]
call fcn.00407500
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41450b
lea ecx, [esp + 0x30]
call fcn.00407310
lea ecx, [esp + 0x2c]
push ecx
push 0x800
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], 0x800
call fcn.00406ae0
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
push 0
push 0x444894
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x414461
xor ecx, ecx
jmp 0x41447b
mov ecx, ebp
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x414466
sub ecx, edi
sar ecx, 1
js 0x413d56
cmp ecx, dword [ebp - 8]
jg 0x413d56
test eax, eax
mov dword [ebp - 0xc], ecx
mov word [ebp + ecx*2], 0
jne 0x4144e3
cmp dword [ebp - 0xc], eax
jle 0x4144e3
mov ecx, dword [esp + 0x14]
push 2
push 0x442630
push 1
push eax
push 0x444894
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Client
lea ecx, [esp + 0x5c]
call fcn.00405910
mov eax, dword [esp + 0x58]
mov edx, dword [esi]
mov ecx, dword [edx + 0x68]
push eax
push str._Delete_Client_entry_at__s____compsetup_finished.
push 8
push esi
call ecx
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41452a
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x68]
push str.Setup_finished_but_an_unknown_problem_encountered:__CompSetupClient_is_empty___Ret.code:__d_
push 1
push esi
call eax
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41452a
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x68]
push str.Setup_finished_but_an_unknown_problem_encountered:__CompSetup_is_empty___Ret.code:__d_
push 1
push esi
call eax
add esp, 0x10
mov dword [esp + 0x1c], 0xffffffff
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0x19
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41454f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4