Function at 0x404b90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebp
call fcn.00405aa0
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x2c], ebp
jbe case.default.0x404bd9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x404bc4
mov esi, dword [esp + 0x28]
mov eax, dword [esi + edi*8]
dec eax
mov ecx, 3
lea edx, [ecx + 0xd]
cmp eax, 0x11
ja case.default.0x404bd9
jmp dword [eax*4 + 0x4054cc]
mov eax, dword [esi + edi*8 + 4]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.LargeSystemCache
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404c2e
lea esi, [eax + 1]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4054a3
mov dword [esp + 0x10], 2
jmp 0x4054a3
mov edx, dword [esi + edi*8 + 4]
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.DisablePagingExecutive
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404c9c
lea esi, [eax + 1]
mov eax, dword [esp + 0x14]
push eax
jmp 0x404c33
mov ecx, dword [esi + edi*8 + 4]
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push str.ClearPageFileAtShutdown
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404cf1
lea esi, [eax + 1]
mov edx, dword [esp + 0x14]
push edx
jmp 0x404c33
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x404d3e
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
push 0x80000002
mov dword [esp + 0x30], ecx
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.EnablePrefetch
jmp 0x404c8a
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
push 0x80000002
mov dword [esp + 0x30], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.EnablePrefetch
jmp 0x404c1c
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x404dba
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
push 0x80000002
mov dword [esp + 0x30], ecx
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push str.EnableSuperfetch
jmp 0x404cdf
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
push 0x80000002
mov dword [esp + 0x30], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.EnableSuperfetch
jmp 0x404c8a
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x404e36
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SystemCurrentControlSetControlSession_ManagerExecutive
push 0x80000002
mov dword [esp + 0x30], edx
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.AdditionalDelayedWorkerThreads
jmp 0x404c1c
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.SystemCurrentControlSetControlSession_ManagerExecutive
push 0x80000002
mov dword [esp + 0x30], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push str.AdditionalDelayedWorkerThreads
jmp 0x404cdf
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x404eb2
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SystemCurrentControlSetControlSession_ManagerExecutive
push 0x80000002
mov dword [esp + 0x30], edx
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.AdditionalCriticalWorkerThreads
jmp 0x404c8a
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SystemCurrentControlSetControlSession_ManagerExecutive
push 0x80000002
mov dword [esp + 0x30], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.AdditionalCriticalWorkerThreads
jmp 0x404c1c
mov eax, dword [esi + edi*8 + 4]
cmp eax, ebp
jne 0x404f7b
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
mov eax, dword [esp + 0x14]
push 2
push str.2436
push 1
push ebp
push str.MaxConnectionsPer1_0Server
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404f3d
lea esi, [eax + 1]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4054a3
mov edx, dword [esp + 0x24]
push edx
mov esi, str.2436
call fcn.00405520
cmp eax, ebp
je 0x4054a3
xor eax, eax
cmp dword [esp + 0x10], 2
sete al
inc eax
mov dword [esp + 0x10], eax
jmp 0x4054a3
cmp eax, 1
jne 0x404fef
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
mov edx, dword [esp + 0x14]
push 2
push 0x4175fc
push 1
push ebp
push str.MaxConnectionsPer1_0Server
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404fc6
lea esi, [eax + 1]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4054a3
mov ecx, dword [esp + 0x24]
push ecx
mov esi, str.2436
call fcn.00405520
cmp eax, ebp
jmp 0x405492
cmp eax, 2
jne 0x4054a3
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
mov ecx, dword [esp + 0x14]
push 2
push 0x417604
push 1
push ebp
push str.MaxConnectionsPer1_0Server
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40503e
lea esi, [eax + 1]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4054a3
mov eax, dword [esp + 0x24]
push eax
mov esi, 0x417600
call fcn.00405520
cmp eax, ebp
je 0x4054a3
xor ecx, ecx
cmp dword [esp + 0x10], 2
sete cl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x4054a3
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x4050c3
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.SystemCurrentControlSetControlPriorityControl
push 0x80000002
mov dword [esp + 0x30], 0x26
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push 0x417608
jmp 0x404cdf
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SystemCurrentControlSetControlPriorityControl
push 0x80000002
mov dword [esp + 0x30], 0x18
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push 0x417608
jmp 0x404c8a
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x405143
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.LowLevelHooksTimeout
lea edi, [esp + 0x18]
mov edx, str.2000
call fcn.00405880
cmp eax, ebp
jmp 0x405492
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.LowLevelHooksTimeout
lea edi, [esp + 0x18]
mov edx, str.5000
call fcn.00405880
jmp 0x405060
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x4051bb
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.HungAppTimeout
lea edi, [esp + 0x18]
mov edx, str.2000
call fcn.00405880
jmp 0x404f5f
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.HungAppTimeout
lea edi, [esp + 0x18]
mov edx, str.5000
call fcn.00405880
cmp eax, ebp
jmp 0x405492
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x405237
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SystemCurrentControlSetControl
push 0x80000002
call ebx
test eax, eax
jne 0x4054a3
push str.WaitToKillServiceTimeout
lea edi, [esp + 0x18]
mov edx, str.2000
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SystemCurrentControlSetControl
push 0x80000002
call ebx
test eax, eax
jne 0x4054a3
push str.WaitToKillServiceTimeout
lea edi, [esp + 0x18]
mov edx, str.20000
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
mov edx, dword [esi + edi*8 + 4]
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SystemCurrentControlSetControlFileSystem
push 0x80000002
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebp
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.NtfsDisable8dot3NameCreation
jmp 0x404c8a
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x405322
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.Control_PanelDesktop
mov edi, 2
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x30], edi
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.FontSmoothingType
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405306
lea esi, [edi - 1]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4054a3
mov dword [esp + 0x10], edi
jmp 0x4054a3
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x30], 1
xor esi, esi
call ebx
test eax, eax
jne 0x4054a3
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push str.FontSmoothingType
jmp 0x404cdf
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x4053a2
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
push 0x80000002
call ebx
test eax, eax
jne 0x4054a3
push str.Max_Cached_Icons
lea edi, [esp + 0x18]
mov edx, str.4096
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
push 0x80000002
call ebx
test eax, eax
jne 0x4054a3
push str.Max_Cached_Icons
lea edi, [esp + 0x18]
mov edx, 0x417908
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
mov dword [esp + 0x14], ebp
cmp dword [esi + edi*8 + 4], ebp
je 0x40541e
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.MenuShowDelay
lea edi, [esp + 0x18]
mov edx, 0x417910
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebp
push str.Control_PanelDesktop
push reloc.K7UI.dll_Ordinal_1
call ebx
test eax, eax
jne 0x4054a3
push str.MenuShowDelay
lea edi, [esp + 0x18]
mov edx, 0x417934
call fcn.00405880
cmp eax, ebp
jmp 0x404c3b
cmp dword [esi + edi*8 + 4], ebp
je 0x4054a3
call fcn.004055a0
test eax, eax
je case.0x404bd9.18
xor ecx, ecx
cmp dword [esp + 0x10], 2
sete cl
inc ecx
mov dword [esp + 0x10], ecx
cmp dword [esi + edi*8 + 4], ebp
je 0x4054a3
push str.DnsFlushResolverCache
push str.dnsapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x4054a3
xor edx, edx
cmp dword [esp + 0x10], 2
sete dl
inc edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0x24], 1
je case.default.0x404bd9
mov edi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x2c]
jb 0x404bc0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc