Function at 0x4067e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov eax, dword [esp + 0x124]
mov edx, dword [eax + 4]
test edx, edx
je 0x406837
mov edx, dword [edx + 8]
lea ebx, [esp + 0x51]
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], 0
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s_s
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call eax
cmp eax, 0x2a
jg 0x406848
add esp, 0x10c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x406837
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4068b3
lea edx, [ebx + ebx*2]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
inc ebx
mov dword [edx*4 + 0x40d028], eax
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call fcn.004066f0
cmp ebx, 9
je 0x406960
lea eax, [esp + 0xa4]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Size_d
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
call eax
cmp eax, 4
jle 0x406949
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa4]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 0x18
test eax, eax
jne 0x406949
cmp dword [esp + 0x40], 4
jne 0x406949
mov edx, dword [0x41200c]
mov eax, dword [esp + 0x44]
cmp edx, 0x60
je 0x406941
mov dword [esp + 8], 0x60
mov dword [esp + 4], edx
mov dword [esp], eax
call ebp
sub esp, 0xc
test eax, eax
jns 0x406888
mov dword [esp + 4], ebx
mov dword [esp], 0x4120a0
call fcn.00406550
jmp 0x406888
xor ebp, ebp
mov ebx, 1
nop
lea eax, [esp + 0x48]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], str.Font_d
mov eax, dword [esp + 0x24]
call eax
cmp eax, 4
jg 0x406998
cmp ebp, 5
ja case.0x40698f.0
jmp dword [ebp*4 + 0x40e408]
cmp ebp, 5
ja case.0x4069a1.0
jmp dword [ebp*4 + 0x40e420]
mov eax, dword [esp + 0x120]
mov esi, 0x4120fc
test byte [esp + 0x120], 1
lea edi, [eax + 0x5c]
mov eax, 0x3c
jne 0x406f78
test edi, 2
jne 0x406f63
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x4069ee
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4069f8
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x48]
mov dword [esp + 8], 2
mov dword [esp], eax
mov dword [esp + 4], str.Font_d
mov eax, dword [esp + 0x24]
call eax
cmp eax, 4
jg case.0x4069a1.2
mov eax, dword [esp + 0x120]
mov esi, 0x412140
test byte [esp + 0x120], 1
lea edi, [eax + 0xa0]
mov eax, 0x3c
jne 0x406f35
test edi, 2
jne 0x406f20
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x406a67
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x406a71
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x48]
mov dword [esp + 8], 3
mov dword [esp], eax
mov dword [esp + 4], str.Font_d
mov eax, dword [esp + 0x24]
call eax
cmp eax, 4
jg case.0x4069a1.3
mov eax, dword [esp + 0x120]
mov esi, 0x41217c
test byte [esp + 0x120], 1
lea edi, [eax + 0xdc]
mov eax, 0x3c
jne 0x406ef2
test edi, 2
jne 0x406edd
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x406ae0
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x406aea
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x48]
mov dword [esp + 8], 4
mov dword [esp], eax
mov dword [esp + 4], str.Font_d
mov eax, dword [esp + 0x24]
call eax
cmp eax, 4
jg case.0x4069a1.4
mov eax, dword [esp + 0x120]
mov esi, 0x4121b8
test byte [esp + 0x120], 1
lea edi, [eax + 0x118]
mov eax, 0x3c
jne 0x406eaf
test edi, 2
jne 0x406e9a
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x406b59
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x406b63
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x48]
mov dword [esp + 8], 5
mov dword [esp], eax
mov dword [esp + 4], str.Font_d
mov eax, dword [esp + 0x24]
call eax
cmp eax, 4
jg case.0x4069a1.5
mov eax, dword [esp + 0x120]
mov esi, 0x4121f4
test byte [esp + 0x120], 1
lea edi, [eax + 0x154]
mov eax, 0x3c
jne 0x406e6c
test edi, 2
jne 0x406e57
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x406bd2
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x406bdc
mov al, byte [esi + edx]
mov byte [edi + edx], al
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x120]
add eax, 0x5c
mov dword [esp + 0x28], eax
nop
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x5c
mov dword [esp + 0x14], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x406c61
cmp dword [esp + 0x40], 3
jne 0x406c61
cmp dword [esp + 0x44], 0x5c
je 0x406d70
mov edx, dword [ebp*4 + 0x40e484]
test edx, edx
je 0x406ca8
mov edi, dword [esp + 0x28]
mov esi, edx
mov eax, 0x3c
test edi, 1
jne 0x406fb5
test edi, 2
jne 0x406fa0
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
jne 0x406d60
test al, 1
jne 0x406d50
xor ebx, ebx
inc ebp
cmp ebp, 6
jne 0x406968
jmp 0x406bdc
mov eax, dword [esp + 0x120]
mov ebp, 5
add eax, 0x154
mov dword [esp + 0x28], eax
jmp 0x406c08
mov eax, dword [esp + 0x120]
mov ebp, 4
add eax, 0x118
mov dword [esp + 0x28], eax
jmp 0x406c08
mov eax, dword [esp + 0x120]
mov ebp, 3
add eax, 0xdc
mov dword [esp + 0x28], eax
jmp 0x406c08
mov eax, dword [esp + 0x120]
mov ebp, 2
add eax, 0xa0
mov dword [esp + 0x28], eax
jmp 0x406c08
mov eax, dword [esp + 0x120]
xor ebp, ebp
add eax, 0x18
mov dword [esp + 0x28], eax
jmp 0x406c08
mov al, byte [esi + edx]
mov byte [edi + edx], al
jmp 0x406ca8
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
jmp 0x406ca0
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0xa4]
mov edi, ecx
mov eax, 0x1c
test cl, 1
jne 0x406fdf
test edi, 2
jne 0x406fca
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x406daf
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x406db9
mov al, byte [esi + edx]
mov byte [edi + edx], al
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20
lea eax, [edi + 0x1c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x41200c]
sub esp, 0x20
cmp eax, 0x60
je 0x406caa
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [edi], eax
mov eax, dword [0x41200c]
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [edi + 4], eax
jmp 0x406caa
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406bba
mov ecx, dword [esp + 0x120]
mov al, byte [0x4121f4]
mov esi, 0x4121f5
mov byte [ecx + 0x154], al
mov eax, dword [esp + 0x120]
lea edi, [eax + 0x155]
mov eax, 0x3b
jmp 0x406bae
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406b41
mov ecx, dword [esp + 0x120]
mov al, byte [0x4121b8]
mov esi, 0x4121b9
mov byte [ecx + 0x118], al
mov eax, dword [esp + 0x120]
lea edi, [eax + 0x119]
mov eax, 0x3b
jmp 0x406b35
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406ac8
mov ecx, dword [esp + 0x120]
mov al, byte [0x41217c]
mov esi, 0x41217d
mov byte [ecx + 0xdc], al
mov eax, dword [esp + 0x120]
lea edi, [eax + 0xdd]
mov eax, 0x3b
jmp 0x406abc
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406a4f
mov ecx, dword [esp + 0x120]
mov al, byte [0x412140]
mov esi, 0x412141
mov byte [ecx + 0xa0], al
mov eax, dword [esp + 0x120]
lea edi, [eax + 0xa1]
mov eax, 0x3b
jmp 0x406a43
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x4069d6
mov ecx, dword [esp + 0x120]
mov al, byte [0x4120fc]
mov esi, 0x4120fd
mov byte [ecx + 0x5c], al
mov eax, dword [esp + 0x120]
lea edi, [eax + 0x5d]
mov eax, 0x3b
jmp 0x4069ca
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406c8f
mov al, byte [edx]
inc edi
mov byte [esp + 0x2f], al
inc esi
mov byte [edi - 1], al
mov eax, 0x3b
jmp 0x406c83
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x406d97
mov al, byte [esp + 0xa4]
lea edi, [ecx + 1]
mov byte [esp + 0x2f], al
lea esi, [esp + 0xa5]
mov byte [ecx], al
mov eax, 0x1b
jmp 0x406d8b
mov eax, dword [esp + 0x120]
mov esi, 0x4120b8
add eax, 0x18
mov ecx, 0xf
mov edi, eax
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
jmp 0x406968