Function at 0x4389c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5811e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5e91b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0xb4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push edi
push 0xf0
push eax
call esi
cmp eax, 1
jne 0x438a94
push str.LifePageCountDisplayState
lea ecx, [ebp - 0x14]
call fcn.00401bf0
lea esi, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00450c20
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438a66
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x438b9a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x128]
push edi
push edi
push 0xf0
push edx
call esi
push str.LifePageCountDisplayState
cmp eax, 1
jne 0x438b17
lea ecx, [ebp - 0x14]
call fcn.00401bf0
lea esi, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.00450c20
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438b0f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x20]
push edx
push 4
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
jmp 0x438a69
lea ecx, [ebp - 0x18]
call fcn.00401bf0
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00450c20
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438b71
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x28]
push edx
push 4
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438bb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
call fcn.0046902b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret