Function at 0x407b20
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x138]
lea ebx, [esp + 0x61]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s_s
mov dword [esp], ebx
call edi
cmp eax, 0x2a
jg 0x407b80
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x54]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x407b64
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
lea ebp, [esp + 0x5a]
mov dword [esp + 0x44], edi
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], str.Font_d
mov dword [esp + 8], esi
mov dword [esp], ebp
mov eax, dword [esp + 0x44]
call eax
cmp eax, 4
jle 0x407c20
mov eax, dword [esp + 0x130]
cmp esi, 5
ja case.0x407c16.0
jmp dword [esi*4 + 0x40e464]
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x3c]
cmp eax, 6
jne 0x407be8
mov edi, dword [esp + 0x44]
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x407cda
mov eax, dword [esp + 0x130]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00406550
mov edx, dword [0x41200c]
cmp edx, 0x60
je 0x407c86
mov dword [esp + 8], edx
mov dword [esp + 4], 0x60
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub esp, 0xc
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
sete al
and eax, 0xff
mov edx, dword [esp + 0x40]
and edx, eax
inc ebx
mov dword [esp + 0x40], edx
cmp ebx, 9
je 0x407d02
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Size_d
mov dword [esp], ebp
call edi
cmp eax, 4
jg 0x407c50
inc ebx
mov dword [esp + 0x40], 0
cmp ebx, 9
jne 0x407cda
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, dword [esp + 0x40]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [eax + 0x154]
nop
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esp + 0x4c], eax
mov eax, dword [0x41200c]
mov dword [esp + 0x48], edx
cmp eax, 0x60
je 0x407d7a
mov dword [esp], edx
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x60
call esi
sub esp, 0xc
mov dword [ebx], eax
mov eax, dword [0x41200c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x60
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [ebx + 4], eax
lea edx, [esp + 0xd0]
xor eax, eax
mov edi, edx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebx
lea edi, [esp + 0xb4]
mov ecx, 7
lea eax, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
jns 0x407e38
mov dword [esp + 0x40], 0
cmp dword [0x41200c], 0x60
je 0x407c28
mov eax, dword [esp + 0x48]
mov dword [ebx], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 4], eax
jmp 0x407c28
lea ebx, [eax + 0x118]
jmp 0x407d28
lea ebx, [eax + 0xdc]
jmp 0x407d28
lea ebx, [eax + 0xa0]
jmp 0x407d28
lea ebx, [eax + 0x5c]
jmp 0x407d28
lea eax, [esp + 0xb4]
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
sete al
mov esi, dword [esp + 0x40]
and eax, 0xff
and esi, eax
mov dword [esp + 0x40], esi
jmp 0x407ddb
lea ebx, [eax + 0x18]
jmp 0x407d28