Function at 0x40d370
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x44c250]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebp
mov ebp, dword [esp + 0x628]
push esi
push edi
xor edi, edi
push ebp
mov esi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40d3af
mov ebp, dword [esi + 0x784]
push ebp
push str.Profiles
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_Settings
lea eax, [esp + 0x234]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [esp + 0x244]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d5b0
mov ecx, dword [esi + 0x748]
push ebx
push edi
push edi
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push str.Operating_System
push eax
call edi
mov ebx, 1
test eax, eax
jne 0x40d440
mov dword [esp + 0x18], ebx
movzx ecx, byte [esi + 0x83e]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.IncludeFIPS
push eax
mov dword [esp + 0x2c], ecx
call edi
test eax, eax
jne 0x40d46a
mov dword [esp + 0x18], ebx
movzx ecx, byte [esi + 0x952]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.InstallMirror
push eax
mov dword [esp + 0x2c], ecx
call edi
test eax, eax
jne 0x40d494
mov dword [esp + 0x18], ebx
movzx ecx, byte [esi + 0xa66]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.InstallKeyboard
push eax
mov dword [esp + 0x2c], ecx
call edi
test eax, eax
jne 0x40d4be
mov dword [esp + 0x18], ebx
movzx ecx, byte [esi + 0xb7a]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.InstallSmartcard
push eax
mov dword [esp + 0x2c], ecx
call edi
test eax, eax
jne 0x40d4e8
mov dword [esp + 0x18], ebx
lea ebx, [esi + 0x780]
push ebx
lea ecx, [esi + 0x680]
call fcn.004174f9
mov ebx, dword [ebx]
mov ecx, dword [ebx - 0xc]
push ebx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax + 4]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push 0
push str.Target_Folder
push eax
call edi
test eax, eax
jne 0x40d5af
push str.Profiles
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_Settings
lea ecx, [esp + 0x434]
push 0x4391ec
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x430]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40d59a
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
lea ecx, [esp + 0x28]
push ecx
lea ebx, [eax + eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x28]
push edx
push 1
push 0
push str.Last_Profile
push eax
call edi
push ebp
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_Settings
mov ecx, esi
call fcn.0040c910
mov dword [esp + 0x18], 1
pop ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
test eax, eax
je 0x40d5c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x61c]
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.00421fea
add esp, 0x620
ret 4