Function at 0x4181a0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x442ab1
push eax
mov al, byte [0x4561a8]
mov dword fs:[0], esp
sub esp, 0x12c
test al, 1
push ebx
push ebp
push esi
push edi
jne 0x4181ef
mov bl, al
push 0x4560f8
or bl, 1
mov ecx, 0x4561a0
mov byte [0x4561a8], bl
call fcn.004372a2
push 0x4184f0
call fcn.0042557e
add esp, 4
mov al, byte [0x4561a8]
test al, 2
jne 0x41821f
mov bl, al
push 0x4560f8
or bl, 2
mov ecx, 0x456198
mov byte [0x4561a8], bl
call fcn.004372a2
push 0x4184e0
call fcn.0042557e
add esp, 4
mov ebp, dword [0x4542b8]
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x144], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x456198]
mov esi, 0x4560f8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x418271
cmp cl, bl
je 0x41826d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x418271
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41824d
xor eax, eax
jmp 0x418276
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41833d
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x18]
mov byte [esp + 0x144], 1
push eax
push 0x20019
push ebx
push str.SOFTWAREIBMThinkPadConfigurationPath
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418454
lea ecx, [esp + 0x20]
push ecx
push 0x104
lea ecx, [esp + 0x1c]
call fcn.0043764f
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418449
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0043769e
lea eax, [esp + 0x14]
push str.prfw.ini
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004374c9
push eax
mov ecx, 0x456198
mov byte [esp + 0x148], 2
call fcn.0043736d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.00437278
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.00437278
mov edx, dword [0x456198]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00425b75
add esp, 8
cmp eax, 0xffffffff
je 0x418464
mov eax, dword [0x456198]
lea ecx, [esp + 0x10]
push eax
push 0x104
push 0x104
call fcn.0043764f
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push str.null
push 0x453ea4
push str.GENERAL
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0043769e
mov ecx, dword [esp + 0x10]
push str.null
push ecx
call fcn.00425610
add esp, 8
cmp eax, ebx
je 0x418464
mov edx, dword [esp + 0x10]
push 0x453e98
push edx
call fcn.00425610
add esp, 8
cmp eax, ebx
jne 0x418464
mov ecx, dword [0x456198]
mov eax, dword [esp + 0x150]
push ecx
push 0x104
mov esi, dword [eax]
push 0x104
lea ecx, [esp + 0x1c]
call fcn.0043764f
push eax
push str.null
push esi
push str.STRINGS
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0043769e
mov edx, dword [esp + 0x10]
push str.null
push edx
call fcn.00425610
add esp, 8
cmp eax, ebx
je 0x418464
mov eax, dword [esp + 0x10]
mov esi, 0x4560f8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4184a8
cmp cl, bl
je 0x418445
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4184a8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x418425
xor eax, eax
jmp 0x4184ad
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.00437278
mov ecx, dword [esp + 0x14c]
push ecx
mov ecx, 0x4561a0
call fcn.0043776a
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.00437278
mov eax, 0x4561a0
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x418464
lea eax, [esp + 0x10]
mov ecx, 0x4561a0
push eax
call fcn.0043736d
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x144], 0xffffffff
call fcn.00437278
mov eax, esi
jmp 0x41848f