Function at 0x401366
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x404b70
push 0xffffffffffffffff
push 0x40d55d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x413bc8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
xor esi, esi
push 0x413bc8
lea ecx, [esp + 0x28]
mov dword [esp + 0x14c], esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov byte [esp + 0x148], 1
push eax
push 0xf003f
push esi
push str.SOFTWARETOP6RS_M2iHMISettings
push 0x80000001
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x404d97
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
push esi
push str.bitmap_off
push ecx
call ebx
cmp eax, esi
je 0x404c3e
inc edi
cmp edi, 5
jl 0x404c16
jmp 0x404c5d
lea edx, [esp + 0x3c]
lea eax, [esp + 0x24]
push edx
push 0x413628
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov dword [esp + 0x28], 1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
push 0
push str.bitmap_on
push ecx
call ebx
test eax, eax
je 0x404c9b
inc esi
cmp esi, 5
jl 0x404c72
jmp 0x404d08
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push 0x413628
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x38], 1
mov eax, dword [ecx - 8]
dec eax
test eax, eax
jle 0x404d08
cmp byte [esp + eax + 0x3c], 0x5c
je 0x404cd4
dec eax
test eax, eax
jg 0x404cc6
jmp 0x404d08
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 0x148]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 1
call fcn.0040b3b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor esi, esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push str.ColorType
push eax
call ebx
test eax, eax
je 0x404d48
inc esi
cmp esi, 5
jl 0x404d1f
jmp 0x404d97
push 0x413bc8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push 0x413628
push edx
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [ebp + 0x218], eax
mov byte [esp + 0x148], 1
call fcn.0040b3b0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x218]
lea esi, [ebp + 0x21c]
mov ecx, esi
mov dword [ebp + 0x210], edx
call fcn.004012df
push ecx
lea ebx, [ebp + 0x148]
mov ecx, esp
mov dword [esp + 0x20], esp
push ebx
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004010c3
mov ecx, ebp
call fcn.0040109b
mov eax, dword [ebp + 0x150]
push 0
push 0x3e9
lea ecx, [ebp + 0x80]
lea esi, [ebp + 0x150]
push ebp
push ecx
push 0x50a00000
push str.Local_Photo_List
push 0
mov ecx, esi
mov dword [esp + 0x38], esi
call dword [eax + 0x5c]
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x404f24
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x148], 4
mov ecx, dword [edx - 8]
lea eax, [ecx - 1]
test eax, eax
jle 0x404e7f
cmp byte [eax + edx], 0x5c
je 0x404e4a
dec eax
test eax, eax
jg 0x404e3d
jmp 0x404e7f
sub ecx, eax
lea eax, [esp + 0x2c]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 4
call fcn.0040b3b0
mov ecx, dword [ebp + 0x23c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x110a
push ecx
call edi
mov edx, dword [ebp + 0x23c]
push eax
push 4
push 0x110a
push edx
call edi
mov esi, eax
test esi, esi
je 0x404f0f
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [ebp + 0x21c]
call sub.MFC42.DLL_CTreeCtrl::GetItemText
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.0040b3b0
test bl, bl
push esi
jne 0x404efb
mov edx, dword [ebp + 0x23c]
push 1
push 0x110a
push edx
call edi
mov esi, eax
test esi, esi
jne 0x404eae
jmp 0x404f0b
mov eax, dword [ebp + 0x23c]
push 9
push 0x110b
push eax
call edi
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call fcn.0040b3b0
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004011b3
mov ecx, dword [esp + 0x38]
mov eax, 1
cmp ecx, eax
jne 0x404f84
cmp dword [esp + 0x28], eax
jne 0x404f84
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x150], 1
call fcn.004012f3
mov ecx, esi
call fcn.004011ea
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 0
call fcn.0040b3b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], 0xffffffff
call fcn.0040b3b0
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret