Function at 0x418d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x24]
xor ebx, ebx
push eax
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str..pfl
push SysReAllocString
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x418d7c
lea edx, [ebp - 0x4c]
push 0x44e068
push edx
mov dword [ebp - 0x4c], 1
call fcn.004256e0
mov edi, str.pflfile
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
mov edi, 1
not ecx
dec ecx
push ecx
push str.pflfile
push edi
push ebx
push ebx
push eax
call esi
test eax, eax
je 0x418dba
lea ecx, [ebp - 0x30]
push 0x44e068
push ecx
mov dword [ebp - 0x30], edi
call fcn.004256e0
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.pflfile
push SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x418df0
lea eax, [ebp - 0x58]
push 0x44e068
push eax
mov dword [ebp - 0x58], edi
call fcn.004256e0
mov edi, str.ThinkPad_Configuration_Profile
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 1
push ecx
mov ecx, dword [ebp - 0x14]
push str.ThinkPad_Configuration_Profile
push edi
push ebx
push ebx
push ecx
call esi
test eax, eax
je 0x418e28
lea edx, [ebp - 0x44]
push 0x44e068
push edx
mov dword [ebp - 0x44], edi
call fcn.004256e0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.DefaultIcon
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x418e5d
lea edx, [ebp - 0x54]
push 0x44e068
push edx
mov dword [ebp - 0x54], edi
call fcn.004256e0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25f]
mov byte [ebp - 0x260], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x2c]
push 0x80
lea edx, [ebp - 0x260]
mov ecx, dword [eax + 0x88]
push ecx
push str._s___d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x260]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x260]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
push 1
push ebx
push ebx
push ecx
call esi
test eax, eax
je 0x418ed4
lea edx, [ebp - 0x34]
push 0x44e068
push edx
mov dword [ebp - 0x34], 1
call fcn.004256e0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.Shell
push ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
je 0x418f15
lea edx, [ebp - 0x38]
push 0x44e068
push edx
mov dword [ebp - 0x38], 1
call fcn.004256e0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.Open
push ecx
call edi
test eax, eax
je 0x418f47
lea edx, [ebp - 0x40]
push 0x44e068
push edx
mov dword [ebp - 0x40], 1
call fcn.004256e0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.Command
push ecx
call edi
test eax, eax
je 0x418f79
lea edx, [ebp - 0x48]
push 0x44e068
push edx
mov dword [ebp - 0x48], 1
call fcn.004256e0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x467]
mov byte [ebp - 0x468], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x468]
mov ecx, dword [eax + 0x88]
push ecx
push str._s__a___1
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x468]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x468]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
push 1
push ebx
push ebx
push ecx
call esi
test eax, eax
je 0x418ff1
lea edx, [ebp - 0x50]
push 0x44e068
push edx
mov dword [ebp - 0x50], 1
call fcn.004256e0
mov eax, 0x41901b
ret
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret