Function at 0x6124faf0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x61253ebc]
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push 0x6124240c
xor ebx, ebx
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x6124fb47
cmp dword [0x61254088], ebx
je 0x6124fb40
lea eax, [ebp - 0x38]
push eax
push 0x940
call fcn.6124d9f5
xor eax, eax
jmp 0x6124fe7e
cmp dword [0x61254088], ebx
je 0x6124fb5d
lea eax, [ebp - 0x38]
push eax
push 0x937
call fcn.6124d9f5
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
jne 0x6124fb84
push 0x612418c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x48], eax
jmp 0x6124fbf9
push 0x612418f8
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x48], eax
jne 0x6124fe6d
lea eax, [ebp - 0x3d]
push eax
push ebx
push 0x612418c0
mov ebx, 0x61242614
push ebx
call fcn.6124e7bc
test eax, eax
mov dword [ebp - 0x44], eax
je 0x6124fe72
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 0x61241dd8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3d]
push eax
push ebx
call fcn.6124d406
xor ebx, ebx
cmp dword [ebp - 0x48], ebx
jne 0x6124fe6d
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push 0x61241dd8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x6124fe6d
cmp dword [ebp + 0x10], ebx
je 0x6124fe44
push esi
push 0x6124282c
push 3
push edi
call fcn.6124f9fb
push esi
push 0x61242818
push 6
push edi
call fcn.6124f9fb
push esi
push 0x61242804
push 5
push edi
call fcn.6124f9fb
push esi
push 0x61242270
push 0x28
push edi
call fcn.6124f9fb
push esi
push 0x61242264
push 0x29
push edi
call fcn.6124f9fb
push esi
push 0x612427ec
push 0x1003
push edi
call fcn.6124f9fb
push esi
push 0x61242258
push 0x1e
push edi
call fcn.6124f9fb
push esi
push 0x612427e0
push 0x23
push edi
call fcn.6124f9fb
push esi
push 0x612427d0
push 0x25
push edi
call fcn.6124f9fb
push esi
push 0x612427b8
push 0x1005
push edi
call fcn.6124f9fb
push esi
push 0x612415d8
push 0x1f
push edi
call fcn.6124f9fb
push esi
push 0x612427ac
push 0x21
push edi
call fcn.6124f9fb
push esi
push 0x612415cc
push 0x1d
push edi
call fcn.6124f9fb
push esi
push 0x612415b8
push 0x20
push edi
call fcn.6124f9fb
push esi
push 0x612413a4
push 0x14
push edi
call fcn.6124f9fb
push esi
push 0x61241390
push 0x1b
push edi
call fcn.6124f9fb
push esi
push 0x6124137c
push 0x1c
push edi
call fcn.6124f9fb
push esi
push 0x61241364
push 0x19
push edi
call fcn.6124f9fb
push esi
push 0x612421d0
push 0xe
push edi
call fcn.6124f9fb
push esi
push 0x6124278c
push 0x16
push edi
call fcn.6124f9fb
push esi
push 0x612421b0
push 0xf
push edi
call fcn.6124f9fb
push esi
push 0x6124276c
push 0x17
push edi
call fcn.6124f9fb
push esi
push 0x612421c4
push 0xc
push edi
call fcn.6124f9fb
push esi
push 0x612421a0
push 0x11
push edi
call fcn.6124f9fb
push esi
push 0x61242190
push 0x12
push edi
call fcn.6124f9fb
push esi
push 0x61242754
push 0x1010
push edi
call fcn.6124f9fb
push esi
push 0x61242160
push 0x13
push edi
call fcn.6124f9fb
push esi
push 0x6124214c
push 0x1014
push edi
call fcn.6124f9fb
push esi
push 0x6124217c
push 0xd
push edi
call fcn.6124f9fb
push esi
push 0x61242738
push 0x1009
push edi
call fcn.6124f9fb
push esi
push 0x61242718
push 0x100c
push edi
call fcn.6124f9fb
push esi
push 0x612426f4
push 0x100d
push edi
call fcn.6124f9fb
push esi
push 0x612426e0
push 0x10
push edi
call fcn.6124f9fb
push esi
push 0x612426c4
push 0x18
push edi
call fcn.6124f9fb
push esi
push 0x612426a8
push 0x50
push edi
call fcn.6124f9fb
push esi
push 0x6124268c
push 0x51
push edi
call fcn.6124f9fb
cmp esi, ebx
jne 0x6124fe51
push edi
push 1
call dword [sym.imp.ntdll.dll_NtSetDefaultLocale]
cmp dword [ebp - 0x3c], ebx
je 0x6124fe68
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x6124fe7d
cmp dword [ebp - 0x3c], ebx
je 0x6124fe7b
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.6124ff04
leave
ret 0xc