Function at 0x4b0730
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56450c
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.0044e5c0
or edi, 0xffffffff
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x5d2a60]
mov ecx, 0x5d2a60
mov dword [esp + 0x50], ebx
mov dword [0x5cfd70], ebx
mov dword [esp + 0x4c], ecx
call dword [edx + 4]
mov eax, dword [0x5cb0cc]
mov ebp, 1
cmp eax, ebx
mov dword [esp + 0x5b0], ebp
jne 0x4b080d
cmp dword [0x5cb0c8], ebx
jne 0x4b080d
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x5b0], 2
je 0x4b07e3
mov ecx, eax
call fcn.0045e9d0
jmp 0x4b07e5
xor eax, eax
mov dword [0x5cb0c8], eax
mov eax, dword [0x5b5c48]
push eax
push 0x41ebd0
mov ecx, 0x5d0190
mov byte [esp + 0x5b8], 1
call fcn.00406500
mov dword [0x5cb0cc], ebp
mov edx, dword [0x5d2a60]
mov esi, dword [0x5cb0c8]
mov ecx, 0x5d2a60
mov dword [esp + 0x5b0], edi
call dword [edx + 8]
mov ecx, esi
call fcn.0045ef00
push str.LoadTheme_Begin_OpenZip
lea ecx, [esp + 0x14]
mov dword [0x5cfaac], eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x5b8], 3
call fcn.0044e5c0
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, 0x5cfda0
push esi
call fcn.0053e330
test al, al
je 0x4b1245
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.0044e5c0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b0], edi
call sub.MFC42.DLL_CString::CString
push 0x5c0758
mov ecx, 0x5cfda0
call fcn.0053ece0
test al, al
je 0x4b123b
lea edx, [esp + 0x374]
mov ecx, 0x5cfda0
push edx
call fcn.0053e7a0
test al, al
je 0x4b123b
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 0x4b1223
mov ecx, dword [esp + 0x598]
push ecx
push ebp
mov ecx, 0x5cfda0
call fcn.0053e4f0
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.0044e5c0
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 0x4b098f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
push edx
call fcn.0044c700
add esp, 4
test eax, eax
je 0x4b120d
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.0044c960
add esp, 8
test eax, eax
je 0x4b120d
push esi
mov ecx, 0x5cfd6c
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.0044e5c0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x5cfd6c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5cabc0
push eax
call ebp
add esp, 8
test eax, eax
je 0x4b0b97
mov esi, dword [0x5cfd6c]
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 0x4b0a50
mov al, byte [edx]
cmp al, 0x2e
jne 0x4b0a47
mov ebp, edx
sub ebp, esi
jmp 0x4b0a4b
cmp al, 0x5c
je 0x4b0a50
dec edx
cmp edx, esi
jne 0x4b0a3b
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 0x4b0acc
test ebx, ebx
je 0x4b0acc
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 0x4b0a8b
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, 0x5baed8
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.0044e5c0
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 0x5c0524
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b4], bl
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x4b0b3c
cmp dword [0x5cfaac], 1
jne 0x4b0b3c
push 0x5c06ec
jmp 0x4b0b41
lea edx, [esp + 0x68]
push edx
call fcn.004bd1d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x5c06c8
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x5b8], 0xb
call fcn.0044e5c0
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.0054f910
mov eax, dword [0x5cfedc]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x4b0ca5
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push 0x57a3b0
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jge 0x4b0c82
lea ecx, [esp + 0x18]
call fcn.0046ca80
mov dword [esp + 0x18], ebx
jmp 0x4b0c93
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0x18]
call fcn.0046ca80
mov dword [esp + 0x18], edi
cmp esi, ebx
jge 0x4b0ca5
cmp esi, 0x80004002
je 0x4b0ca5
push esi
call fcn.005505fa
mov eax, dword [esp + 0x18]
mov byte [esp + 0x5b0], 0x13
cmp eax, ebx
je 0x4b0e51
push 0x5cfd64
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0054f83e
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b8], 0x14
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b8], 0x13
call dword [edx + 0x50]
cmp eax, ebx
je 0x4b0d6c
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 0x4b0d6c
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 [0x5cfd64], 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.0054f83e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b4], 0x16
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b4], 0x13
call dword [edx + 0x60]
mov dword [0x5cfd58], 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.0054f83e
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b8], 0x17
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x5b8], 0x13
call dword [edx + 0x58]
mov eax, dword [esp + 0x28]
push 0x5b53fc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b0df3
mov dword [0x5cfd60], ebx
jmp 0x4b0e2f
mov ecx, dword [esp + 0x28]
push 0x5b5ca0
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4b0e12
mov dword [0x5cfd60], 1
jmp 0x4b0e2f
mov edx, dword [esp + 0x28]
push 0x5b6658
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4b0e2f
mov dword [0x5cfd60], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4b0e45
push 0x80004003
call fcn.005505fa
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
jmp 0x4b0eca
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 0x4b0eca
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 [0x5cfd64], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
call fcn.004afb00
push 0x5c0688
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.0044e5c0
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 0x4b0f56
push 0x5bf034
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.005506a7
cmp eax, ebx
mov dword [esi], eax
jne 0x4b0f58
mov eax, 0x5bf034
test eax, eax
je 0x4b0f58
push 0x8007000e
call fcn.005505fa
jmp 0x4b0f58
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x5b4], 0x13
mov dword [edi], esi
jne 0x4b0f70
push 0x8007000e
call fcn.005505fa
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5b4], 0x13
push ecx
lea ecx, [esp + 0x28]
call fcn.00431ac0
mov ecx, eax
call fcn.00431580
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 0x4b0fb5
push 0x80004003
call fcn.005505fa
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 0x4b0fd2
push 0x5b74f0
push esi
push eax
call fcn.00550608
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jge 0x4b112d
cmp dword [esp + 0x38], ebx
jne 0x4b0ff2
push 0x80004003
call fcn.005505fa
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
call fcn.00431710
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x5b0], 0x1d
cmp ecx, ebx
je 0x4b1112
lea edx, [esp + 0x3c]
push edx
call fcn.004312b0
mov esi, dword [eax]
mov byte [esp + 0x5b0], 0x1e
cmp esi, ebx
je 0x4b1053
cmp dword [esi + 4], ebx
jne 0x4b104e
mov eax, dword [esi]
push eax
call fcn.0055071c
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4b104e
cmp dword [esi], ebx
je 0x4b104e
push 0x8007000e
call fcn.005505fa
mov esi, dword [esi + 4]
jmp 0x4b1055
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 0x4b10a7
lea ecx, [esi + 8]
push ecx
call ebp
test eax, eax
jne 0x4b10a3
cmp esi, ebx
je 0x4b10a3
mov eax, dword [esi]
cmp eax, ebx
je 0x4b108a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4b109a
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 0x4b10fd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b26e0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4b10fd
mov esi, dword [0x5cfd80]
cmp esi, esi
jl 0x4b10ed
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
mov ecx, 0x5cfd78
call fcn.00481260
mov eax, dword [0x5cfd7c]
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 0x4b1124
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
inc dword [esp + 0x10]
jmp 0x4b0f9f
mov eax, dword [esp + 0x38]
mov byte [esp + 0x5b0], 0x13
cmp eax, ebx
je 0x4b1143
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x5c0654
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.0044e5c0
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 0x4b118f
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 0x4b1223
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov al, byte [esp + 0x60]
mov dword [esp + 0x5b0], edi
test al, al
je 0x4b123b
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, 0x5cfda0
call fcn.0053df80
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.0044e5c0
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