Function at 0x402690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov eax, dword [esp + 0x134]
mov edx, dword [eax + 4]
test edx, edx
je 0x4026e7
mov edx, dword [edx + 8]
lea ebx, [esp + 0x61]
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], 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 0x402700
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x4026e7
mov eax, dword [esp + 0x130]
xor ebp, ebp
add eax, 0x18
mov dword [esp + 0x28], 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x130]
add eax, 0x5c
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x130]
add eax, 0xa0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x59]
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 0x402798
cmp ebp, 5
ja case.0x40278f.0
jmp dword [ebp*4 + 0x40e0c4]
cmp ebp, 5
ja case.0x4027a1.0
jmp dword [ebp*4 + 0x40e0dc]
mov ecx, dword [esp + 0x2c]
mov esi, 0x41307c
mov edi, ecx
mov eax, 0x3c
test cl, 1
jne 0x402e3d
test edi, 2
jne 0x402e28
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x4027e5
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4027ef
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x59]
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.0x4027a1.2
mov ecx, dword [esp + 0x30]
mov esi, 0x4130c0
mov edi, ecx
mov eax, 0x3c
test cl, 1
jne 0x402e05
test edi, 2
jne 0x402df0
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x402852
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x40285c
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x59]
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.0x4027a1.3
mov eax, dword [esp + 0x130]
mov esi, 0x4130fc
test byte [esp + 0x130], 1
lea edi, [eax + 0xdc]
mov eax, 0x3c
jne 0x402dc2
test edi, 2
jne 0x402dad
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x4028cb
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4028d5
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x59]
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.0x4027a1.4
mov eax, dword [esp + 0x130]
mov esi, 0x413138
test byte [esp + 0x130], 1
lea edi, [eax + 0x118]
mov eax, 0x3c
jne 0x402d7f
test edi, 2
jne 0x402d6a
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x402944
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x40294e
mov al, byte [esi + edx]
mov byte [edi + edx], al
lea eax, [esp + 0x59]
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.0x4027a1.5
mov eax, dword [esp + 0x130]
mov esi, 0x413174
test byte [esp + 0x130], 1
lea edi, [eax + 0x154]
mov eax, 0x3c
jne 0x402d3c
test edi, 2
jne 0x402d27
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x4029bd
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4029c7
mov al, byte [esi + edx]
mov byte [edi + edx], al
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 4
mov dword [esp], eax
lea edi, [esp + 0x54]
call fcn.00402580
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 6
call fcn.00402580
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.00402580
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x402a31
mov dword [esp + 8], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 4], ebx
mov dword [esp], eax
inc ebx
call fcn.00402420
cmp ebx, 9
je 0x402c00
lea eax, [esp + 0xb4]
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 + 0x4c]
call eax
cmp eax, 4
jle 0x402a88
lea eax, [esp + 0xb4]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004012b0
test eax, eax
jne 0x402a88
mov edx, dword [0x4132b4]
mov eax, dword [esp + 0x54]
cmp edx, 0x60
jne 0x402be0
test eax, eax
jns 0x402a10
mov dword [esp + 4], ebx
mov dword [esp], 0x413020
call fcn.004022a0
jmp 0x402a10
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x5c
mov dword [esp + 0x14], eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x59]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x402b01
cmp dword [esp + 0x50], 3
jne 0x402b01
cmp dword [esp + 0x54], 0x5c
je 0x402c40
mov edx, dword [ebp*4 + 0x40e128]
test edx, edx
je 0x402b4a
mov edi, dword [esp + 0x34]
mov esi, edx
mov eax, 0x3c
test edi, 1
jne 0x402e5d
test edi, 2
jne 0x402e72
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
jne 0x402c30
test al, 1
je 0x402b4a
mov al, byte [esi + edx]
mov byte [edi + edx], al
mov dword [esp + 0x28], 0
inc ebp
cmp ebp, 6
jne 0x402768
jmp 0x4029c7
mov eax, dword [esp + 0x130]
mov ebp, 3
add eax, 0xdc
mov dword [esp + 0x34], eax
jmp 0x402aa8
mov eax, dword [esp + 0x30]
mov ebp, 2
mov dword [esp + 0x34], eax
jmp 0x402aa8
mov eax, dword [esp + 0x130]
mov ebp, 5
add eax, 0x154
mov dword [esp + 0x34], eax
jmp 0x402aa8
mov eax, dword [esp + 0x130]
mov ebp, 4
add eax, 0x118
mov dword [esp + 0x34], eax
jmp 0x402aa8
mov dword [esp + 8], 0x60
mov dword [esp + 4], edx
mov dword [esp], eax
call ebp
sub esp, 0xc
jmp 0x402a84
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, dword [esp + 0x28]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x38]
xor ebp, ebp
mov dword [esp + 0x34], eax
jmp 0x402aa8
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
jmp 0x402b40
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0xb4]
mov edi, ecx
mov eax, 0x1c
test cl, 1
jne 0x402e9c
test edi, 2
jne 0x402e87
mov ecx, eax
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x402c7f
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x402c89
mov al, byte [esi + edx]
mov byte [edi + edx], al
mov edi, dword [esp + 0x34]
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 + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x4132b4]
sub esp, 0x20
cmp eax, 0x60
je 0x402b52
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 [0x4132b4]
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 0x402b52
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x4029a5
mov ecx, dword [esp + 0x130]
mov al, byte [0x413174]
mov esi, 0x413175
mov byte [ecx + 0x154], al
mov eax, dword [esp + 0x130]
lea edi, [eax + 0x155]
mov eax, 0x3b
jmp 0x402999
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x40292c
mov ecx, dword [esp + 0x130]
mov al, byte [0x413138]
mov esi, 0x413139
mov byte [ecx + 0x118], al
mov eax, dword [esp + 0x130]
lea edi, [eax + 0x119]
mov eax, 0x3b
jmp 0x402920
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x4028b3
mov ecx, dword [esp + 0x130]
mov al, byte [0x4130fc]
mov esi, 0x4130fd
mov byte [ecx + 0xdc], al
mov eax, dword [esp + 0x130]
lea edi, [eax + 0xdd]
mov eax, 0x3b
jmp 0x4028a7
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x40283a
mov al, byte [0x4130c0]
mov esi, 0x4130c1
mov byte [ecx], al
mov eax, dword [esp + 0x130]
lea edi, [eax + 0xa1]
mov eax, 0x3b
jmp 0x40282e
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x4027cd
mov al, byte [0x41307c]
mov esi, 0x41307d
mov byte [ecx], al
mov eax, dword [esp + 0x130]
lea edi, [eax + 0x5d]
mov eax, 0x3b
jmp 0x4027c1
mov al, byte [edx]
inc edi
mov byte [esp + 0x28], al
inc esi
mov byte [edi - 1], al
mov eax, 0x3b
jmp 0x402b23
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x402b2f
mov dx, word [esi]
add edi, 2
mov word [edi - 2], dx
add esi, 2
sub eax, 2
jmp 0x402c67
mov al, byte [esp + 0xb4]
lea edi, [ecx + 1]
mov byte [esp + 0x3f], al
lea esi, [esp + 0xb5]
mov byte [ecx], al
mov eax, 0x1b
jmp 0x402c5b
mov esi, 0x413038
mov ecx, 0xf
mov edi, dword [esp + 0x38]
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
jmp 0x402768