Function at 0x4038e0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x435d6c
mov eax, dword fs:[0]
push eax
mov eax, 0x86e8
call fcn.004241b0
mov eax, dword [0x44c250]
xor eax, esp
mov dword [esp + 0x86e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c250]
xor eax, esp
push eax
lea eax, [esp + 0x86fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x870c]
mov esi, dword [esp + 0x8710]
xor ebp, ebp
push 0x206
mov edi, ecx
lea edx, [esp + 0xf6]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0xfc], cx
call fcn.00422000
push 0x7ffc
lea ecx, [esp + 0x70a]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x78], 0x104
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x60], ebp
mov word [esp + 0x710], ax
call fcn.00422000
add esp, 0x18
mov dword [esp + 0x40], 0x3fff
mov dword [esp + 0x44], ebp
call fcn.00413279
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4039c4
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x20c]
mov dword [esp + 0x8704], ebp
mov dword [esp + 0x3c], 4
cmp eax, 0x68
je 0x4039f3
cmp eax, 0x66
jne 0x4039fb
mov dword [esp + 0x3c], pe_nt_image_headers32
call fcn.00413279
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x403a15
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str.DWRCSMSIDialog_SettingsProfiles_sClientAgent
push ecx
mov byte [esp + 0x8710], 1
call fcn.00402ca0
add esp, 0xc
cmp dword [edi + 0x20c], ebp
je 0x4041cc
call fcn.00410aa0
test eax, eax
je 0x4041cc
mov ecx, edi
call fcn.00401210
test eax, eax
je 0x4041cc
cmp dword [0x4549b4], ebp
jne 0x403aa5
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x403ae7
lea ecx, [esp + 0x18]
call fcn.00402090
lea ecx, [esp + 0x14]
call fcn.00402090
mov eax, 1
jmp 0x40422f
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x403ae7
push 0x10
push str.DWRCSMSI_Wizard
push str.Unable_to_configure_registry_settings__Opening_Local_Settings_Key_
lea eax, [esp + 0x68]
push eax
push ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, ebp
je 0x403b45
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x403ad0
mov eax, dword [esp + 0x34]
cmp eax, ebp
jbe 0x403bc5
xor esi, esi
cmp eax, ebp
jbe 0x403bc5
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x20]
push ebp
push ebp
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x50c]
push ecx
push esi
push edx
mov dword [esp + 0x70], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, ebp
jne 0x403bbe
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x4f8]
push eax
push ecx
lea edx, [esp + 0x300]
push 0x4391ec
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x64]
add esp, 0x10
push ebp
push eax
lea ecx, [esp + 0x300]
push ecx
mov ecx, edi
call fcn.004038e0
test eax, eax
je 0x403c0b
inc esi
cmp esi, dword [esp + 0x34]
jb 0x403b53
cmp dword [esp + 0x30], ebp
jbe 0x403ebe
mov ebp, dword [esp + 0x48]
shl ebp, 5
add ebp, 2
push ebp
call fcn.004242b8
xor esi, esi
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x403c32
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x403bff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x403ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x403c22
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x403ad0
mov dword [esp + 0x38], esi
cmp dword [esp + 0x30], esi
jbe 0x403eb3
xor edx, edx
lea ecx, [esp + 0x4c]
push ecx
push eax
mov word [esp + 0x700], dx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x44]
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x70c]
push ecx
push edx
push eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x60], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x403f52
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x7a]
push edx
mov word [esp + 0x7c], cx
call fcn.00422000
mov eax, dword [0x44d5c0]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
inc eax
push eax
mov dword [0x44d5c0], eax
lea eax, [esp + 0x80]
push str.registry_d
push eax
call ebx
push ebp
call fcn.004242b8
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x403f65
push ebp
push 0
push esi
call fcn.00422000
mov eax, dword [esp + 0x50]
dec eax
add esp, 0xc
cmp eax, 3
ja case.default.0x403ce6
jmp dword [eax*4 + 0x40425c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
push ebp
push esi
push ecx
push edx
mov ecx, edi
call fcn.00401490
jmp 0x403d45
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403d45
push 0x4386f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403d45
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push edx
push 0x4391cc
push esi
call ebx
add esp, 0xc
jmp 0x403d45
push 0x10
push str.DWMSI_Wizard
push 0x4391c0
push 0
call fcn.00410da0
lea ecx, [esp + 0x28]
call fcn.004024e0
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push str.DWRCSMSIDialog_SettingsProfiles_sClientAgent
push ecx
mov byte [esp + 0x8710], 2
call fcn.00402ca0
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
lea ecx, [esp + 0x28]
call fcn.00403690
mov eax, dword [esp + 0x28]
push str.Mini_Remote_Control_Service
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x870c], 3
call fcn.004028b0
cmp word [esp + 0x6f8], 0
je 0x403e79
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x6fc]
push edx
lea eax, [esp + 0x1c]
push str.INSERT_INTO_Component__Component__Directory___Attributes__KeyPath__VALUES___s__APPDIR___d___
push eax
call fcn.00402ca0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00403750
test eax, eax
je 0x403f92
lea edx, [esp + 0x6f8]
push edx
lea eax, [esp + 0x18]
push str.INSERT_INTO_FeatureComponents__Feature___Component___VALUES__MainFeature___s_
push eax
call fcn.00402ca0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00403750
test eax, eax
je 0x403fe2
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x6f8]
push ecx
push esi
mov edx, ecx
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00402530
push eax
lea eax, [esp + 0x708]
push eax
lea ecx, [esp + 0x28]
push str.INSERT_INTO_Registry__Registry__Root___Key___Name__Value___Component___VALUES___s_2___s___s___s___s_
push ecx
call fcn.00402ca0
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 0xc]
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00403750
test eax, eax
je 0x404017
push esi
call fcn.004241db
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00402090
lea ecx, [esp + 0x28]
mov byte [esp + 0x8704], 1
call fcn.00402090
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
jb 0x403c40
push eax
call fcn.004241db
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x403ed1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebp
cmp dword [edi + 0x214], ebp
je 0x404165
mov esi, dword [esp + 0x3c]
push esi
lea ecx, [esp + 0x18]
push str.INSERT_INTO_Component__Component__Directory___Attributes__KeyPath__VALUES__DameWare_Development__APPDIR___d___
push ecx
call fcn.00402ca0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00403750
test eax, eax
jne fcn.00404070
mov ecx, dword [edi + 0x218]
push 0x4385e8
add ecx, 0x188
call fcn.004136c0
mov ecx, dword [edi + 0x218]
push ebp
add ecx, 0x62c
call fcn.00413747
mov eax, dword [edi + 0x218]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x403ad0
push 0x10
push str.DWRCSMSI_Wizard
push str.Failed
push 0
jmp 0x403acb
mov eax, dword [esp + 0x20]
push eax
call fcn.004241db
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x403ad0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
jmp 0x403ad0
mov ecx, dword [edi + 0x218]
push 0x4385e8
add ecx, 0x188
call fcn.004136c0
mov ecx, dword [edi + 0x218]
push 0
add ecx, 0x62c
call fcn.00413747
mov ecx, dword [edi + 0x218]
mov edx, dword [ecx + 0x20]
push edx
mov ecx, dword [edi + 0x218]
push 0x4385e8
add ecx, 0x188
call fcn.004136c0
mov ecx, dword [edi + 0x218]
push 0
add ecx, 0x62c
call fcn.00413747
mov eax, dword [edi + 0x218]
mov ecx, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
push 0x10
push str.DWMSI_Wizard
push eax
lea ecx, [esp + 0x20]
call fcn.00402530
push eax
push 0
call fcn.00410da0
push esi
call fcn.004241db
mov eax, dword [esp + 0x24]
push eax
call fcn.004241db
add byte [ebx - 0x7cdbdbbc], cl
les ecx, [eax]
test eax, eax
je 0x403fcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
jmp 0x403fcb