Function at 0x4b89b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57a90c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x598
push ebx
push ebp
push esi
push edi
push str.LoadTheme_in
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x5b8], ebx
call fcn.00454ac0
or edi, 0xffffffff
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov dword [esp + 0x50], ebx
mov dword [0x5eab70], ebx
mov dword [esp + 0x4c], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov ebp, 1
cmp eax, ebx
mov dword [esp + 0x5b0], ebp
jne 0x4b8a8d
cmp dword [0x5e5d2c], ebx
jne 0x4b8a8d
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x5b0], 2
je 0x4b8a63
mov ecx, eax
call fcn.00464f50
jmp 0x4b8a65
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x5b8], 1
call fcn.00406600
mov dword [0x5e5d30], ebp
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov dword [esp + 0x5b0], edi
call dword [edx + 8]
mov ecx, esi
call fcn.00465480
push str.LoadTheme_Begin_OpenZip
lea ecx, [esp + 0x14]
mov dword [0x5ea8a4], eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x5b8], 3
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x5b8]
mov ecx, 0x5eaba0
push esi
call fcn.00550f80
test al, al
je 0x4b94c5
push str.LoadTheme_OpenZip_Over
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push ebp
push ecx
mov dword [esp + 0x5b8], 4
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
push 0x5daf08
mov ecx, 0x5eaba0
call fcn.00551930
test al, al
je 0x4b94bb
lea edx, [esp + 0x374]
mov ecx, 0x5eaba0
push edx
call fcn.005513f0
test al, al
je 0x4b94bb
mov eax, dword [esp + 0x598]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x4c], ebp
setne byte [esp + 0x60]
mov dword [esp + 0x64], ebp
cmp ebp, ebx
mov dword [esp + 0x5b0], 5
je 0x4b94a3
mov ecx, dword [esp + 0x598]
push ecx
push ebp
mov ecx, 0x5eaba0
call fcn.00551140
mov edx, dword [esp + 0x598]
mov byte [edx + ebp], 0
mov dword [esp + 0x20], ebx
push str.LoadTheme_OpenXMLDoc_begin
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 6
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push ebx
push eax
mov byte [esp + 0x5b8], 7
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4b8c0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
push edx
call fcn.00452a60
add esp, 4
test eax, eax
je 0x4b948d
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.00452cc0
add esp, 8
test eax, eax
je 0x4b948d
push esi
mov ecx, 0x5eab6c
call sub.MFC42.DLL_CString::operator_2
push str.LoadTheme_OpenXMLDoc_Over
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push 1
push ecx
mov byte [esp + 0x5b8], 8
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x5eab6c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5e5830
push eax
call ebp
add esp, 8
test eax, eax
je 0x4b8e17
mov esi, dword [0x5eab6c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
mov ebx, ecx
lea edx, [ebx + esi - 1]
cmp edx, esi
je 0x4b8cd0
mov al, byte [edx]
cmp al, 0x2e
jne 0x4b8cc7
mov ebp, edx
sub ebp, esi
jmp 0x4b8ccb
cmp al, 0x5c
je 0x4b8cd0
dec edx
cmp edx, esi
jne 0x4b8cbb
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, esi
stosb byte es:[edi], al
je 0x4b8d4c
test ebx, ebx
je 0x4b8d4c
sub ebp, edx
mov dword [esp + 0x14], 0
lea eax, [esi + ebp - 1]
mov dword [esp + 0x3c], eax
test eax, eax
lea eax, [esp + 0x14]
jl 0x4b8d0b
lea eax, [esp + 0x3c]
mov eax, dword [eax]
inc edx
push eax
push edx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov edi, 0x5d54c0
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x68]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.LoadTheme
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 0
push eax
mov byte [esp + 0x5b8], 9
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov bl, 0xa
push 0x5dacd4
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b4], bl
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x4b8dbc
cmp dword [0x5ea8a4], 1
jne 0x4b8dbc
push 0x5dae9c
jmp 0x4b8dc1
lea edx, [esp + 0x68]
push edx
call fcn.004c54b0
add esp, 4
lea ecx, [esp + 0x10]
push 0x5dae78
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x5b8], 0xb
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
xor ebx, ebx
push str.PLopen
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
push str.PLcycle
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5b4], 0xc
call sub.MFC42.DLL_CString::CString_2
push str.PLmode
lea ecx, [esp + 0x44]
mov byte [esp + 0x5b4], 0xd
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x5b0], 0xe
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x5b0], 0xf
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], 0x10
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0x208
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov byte [esp + 0x5b0], 0x11
call sub.MFC42.DLL_CString::CString_3
push str.SOFTWAREStorm
lea ecx, [esp + 0x28]
mov byte [esp + 0x5b4], 0x12
call sub.MFC42.DLL_CString::operator_2
push str._skinsclassic2
lea ecx, [esp + 0x28]
call fcn.00564d16
mov eax, dword [0x5eacdc]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x4b8f25
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push 0x591408
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jge 0x4b8f02
lea ecx, [esp + 0x18]
call fcn.004f3790
mov dword [esp + 0x18], ebx
jmp 0x4b8f13
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0x18]
call fcn.004f3790
mov dword [esp + 0x18], edi
cmp esi, ebx
jge 0x4b8f25
cmp esi, 0x80004002
je 0x4b8f25
push esi
call fcn.00565a92
mov eax, dword [esp + 0x18]
mov byte [esp + 0x5b0], 0x13
cmp eax, ebx
je 0x4b90d1
push 0x5eab64
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00564cce
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b8], 0x14
call fcn.00436700
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b8], 0x13
call dword [edx + 0x50]
cmp eax, ebx
je 0x4b8fec
lea eax, [esp + 0x58]
lea ecx, [esp + 0x16c]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x58]
push ecx
push edx
push str.pref
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4b8fec
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x16c]
mov byte [esp + 0x5b0], 0x15
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator_2
push str.PLopen_true
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
xor edx, edx
lea ecx, [esp + 0x14]
test eax, eax
setge dl
mov dword [0x5eab64], edx
mov byte [esp + 0x5b0], 0x13
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00564cce
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b4], 0x16
call fcn.00436700
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b4], 0x13
call dword [edx + 0x60]
mov dword [0x5eab58], eax
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00564cce
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b8], 0x17
call fcn.00436700
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b8], 0x13
call dword [edx + 0x58]
mov eax, dword [esp + 0x28]
push 0x5cf478
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b9073
mov dword [0x5eab60], ebx
jmp 0x4b90af
mov ecx, dword [esp + 0x28]
push 0x5cf990
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4b9092
mov dword [0x5eab60], 1
jmp 0x4b90af
mov edx, dword [esp + 0x28]
push 0x5d0970
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4b90af
mov dword [0x5eab60], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4b90c5
push 0x80004003
call fcn.00565a92
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
jmp 0x4b914a
lea edx, [esp + 0x58]
lea eax, [esp + 0x16c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push eax
push ecx
push str.pref
push edx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4b914a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x5b4], 0x18
call sub.MFC42.DLL_CString::operator_2
push str.PLopen_true
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
xor ecx, ecx
mov byte [esp + 0x5b0], 0x13
test eax, eax
setge cl
mov dword [0x5eab64], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
call fcn.004b7d80
push 0x5dae38
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push ebx
push edx
mov byte [esp + 0x5b8], 0x19
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0x13
call sub.MFC42.DLL_CString::CString
push ecx
mov dword [esp + 0x30], esp
mov edi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov byte [esp + 0x5b4], 0x1a
je 0x4b91d6
push 0x5d974c
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.00565b3f
cmp eax, ebx
mov dword [esi], eax
jne 0x4b91d8
mov eax, 0x5d974c
test eax, eax
je 0x4b91d8
push 0x8007000e
call fcn.00565a92
jmp 0x4b91d8
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x5b4], 0x13
mov dword [edi], esi
jne 0x4b91f0
push 0x8007000e
call fcn.00565a92
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5b4], 0x13
push ecx
lea ecx, [esp + 0x28]
call fcn.00436700
mov ecx, eax
call fcn.004361b0
mov ebp, dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov byte [esp + 0x5b0], 0x1c
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x4b9235
push 0x80004003
call fcn.00565a92
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
cmp eax, ebx
jge 0x4b9252
push 0x5d1838
push esi
push eax
call fcn.00565aa0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jge 0x4b93ad
cmp dword [esp + 0x38], ebx
jne 0x4b9272
push 0x80004003
call fcn.00565a92
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
call fcn.00436340
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x5b0], 0x1d
cmp ecx, ebx
je 0x4b9392
lea edx, [esp + 0x3c]
push edx
call fcn.00435ee0
mov esi, dword [eax]
mov byte [esp + 0x5b0], 0x1e
cmp esi, ebx
je 0x4b92d3
cmp dword [esi + 4], ebx
jne 0x4b92ce
mov eax, dword [esi]
push eax
call fcn.00565bb4
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4b92ce
cmp dword [esi], ebx
je 0x4b92ce
push 0x8007000e
call fcn.00565a92
mov esi, dword [esi + 4]
jmp 0x4b92d5
xor esi, esi
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x5b0], 0x20
cmp esi, ebx
je 0x4b9327
lea ecx, [esi + 8]
push ecx
call ebp
test eax, eax
jne 0x4b9323
cmp esi, ebx
je 0x4b9323
mov eax, dword [esi]
cmp eax, ebx
je 0x4b930a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4b931a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
mov edx, dword [str.THEME]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b937d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ba960
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4b937d
mov esi, dword [0x5eab80]
cmp esi, esi
jl 0x4b936d
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
mov ecx, 0x5eab78
call fcn.004eced0
mov eax, dword [0x5eab7c]
mov dword [esp + 0x50], 1
mov dword [eax + esi*4], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 0x1d
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov byte [esp + 0x5b0], 0x1c
je 0x4b93a4
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
inc dword [esp + 0x10]
jmp 0x4b921f
mov eax, dword [esp + 0x38]
mov byte [esp + 0x5b0], 0x13
cmp eax, ebx
je 0x4b93c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x5dae04
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + 0x5b8], 0x21
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 0x13
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov byte [esp + 0x5b0], 0x12
cmp eax, ebx
je 0x4b940f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0x5b0], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5b0], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x5b0], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5b0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x5b0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x4c]
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
mov byte [esp + 0x5b0], 5
cmp eax, ebx
je 0x4b94a3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov al, byte [esp + 0x60]
mov dword [esp + 0x5b0], edi
test al, al
je 0x4b94bb
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, 0x5eaba0
call fcn.00550bd0
push str.LoadTheme_Out
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x5b8], 0x22
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5a8]
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5a4
ret