Function at 0x403660
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
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 eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], str._s_s_s
mov dword [esp], ebx
mov dword [esp + 0x40], eax
call eax
cmp eax, 0x2a
jg 0x4036c0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
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 0x4036a7
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
lea ebp, [esp + 0x5a]
lea esi, [esi]
mov esi, dword [esp + 0x38]
mov dword [esp + 4], str.Font_d
mov dword [esp + 8], esi
mov dword [esp], ebp
mov eax, dword [esp + 0x40]
call eax
cmp eax, 4
jle 0x403760
mov eax, dword [esp + 0x130]
cmp esi, 5
ja case.0x403756.0
jmp dword [esi*4 + 0x40e108]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x38]
cmp eax, 6
jne 0x403728
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x403816
mov eax, dword [esp + 0x130]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004022a0
mov edx, dword [0x4132b4]
cmp edx, 0x60
je 0x4037c2
mov dword [esp + 8], edx
mov dword [esp + 4], 0x60
mov dword [esp], eax
call edi
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 + 0x3c]
and edx, eax
inc ebx
mov dword [esp + 0x3c], edx
cmp ebx, 9
je 0x403842
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Size_d
mov dword [esp], ebp
mov eax, dword [esp + 0x40]
call eax
cmp eax, 4
jg 0x403790
inc ebx
mov dword [esp + 0x3c], 0
cmp ebx, 9
jne 0x403816
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, dword [esp + 0x3c]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [eax + 0x154]
nop
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4132b4]
mov dword [esp + 0x48], edi
cmp eax, 0x60
je 0x4038ba
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x60
mov dword [esp], edi
call esi
sub esp, 0xc
mov dword [ebx], eax
mov eax, dword [0x4132b4]
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 eax, [ebx + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
push esi
cmp ecx, 0x1f
jle 0x4039d8
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
mov eax, dword [esp + 0x44]
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
jne 0x403988
cmp dword [0x4132b4], 0x60
je 0x403947
mov edx, dword [esp + 0x48]
mov dword [ebx], edx
mov edx, dword [esp + 0x4c]
mov dword [ebx + 4], edx
mov dword [esp + 0x3c], eax
jmp 0x403768
lea ebx, [eax + 0x118]
jmp 0x403868
lea ebx, [eax + 0xdc]
jmp 0x403868
lea ebx, [eax + 0xa0]
jmp 0x403868
lea ebx, [eax + 0x5c]
jmp 0x403868
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
and eax, 0xff
mov edi, dword [esp + 0x3c]
and eax, edi
jmp 0x403931
mov edx, 0x20
lea eax, [ebx + eax + 0x1d]
sub edx, ecx
mov edi, eax
cmp edx, 4
jae 0x403a10
test dl, 2
je 0x4039f7
mov word [edi], 0
add edi, 2
and edx, 1
je 0x4038d7
mov byte [edi], 0
jmp 0x4038d7
lea ebx, [eax + 0x18]
jmp 0x403868
test al, 1
jne 0x403a27
test edi, 2
jne 0x403a2e
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x4039ea
mov byte [eax], 0
inc edi
dec edx
jmp 0x403a14
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x403a1c