Function at 0x10049120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x238
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
xor eax, eax
mov edi, edi
cmp dword [eax*8 + 0x100f67e0], 0x15
je 0x10049154
inc eax
cmp eax, 0x20
jl 0x10049140
xor edi, edi
jmp 0x1004915b
mov edi, dword [eax*8 + 0x100f67e4]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call sub.MSVCR120.dll_memset
push edi
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
push str.Hwp
lea eax, [esp + 0x4c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0x24
lea eax, [esp + 0x18]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push edi
push SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
je 0x10049238
push 0
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0
push 2
push 0
push 0
push 0
push edi
push SysReAllocString
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
je 0x10049238
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push 4
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.LCID
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
call edi
lea ecx, [esp + 0x10]
call fcn.10010900
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
je 0x10049310
push 0
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x10049220
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
cmp eax, 0x412
je 0x1004932c
mov ecx, 0x409
cmp eax, ecx
cmovne eax, ecx
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x18]
push 4
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
push 4
push 0
push str.LCID
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
call edi
lea ecx, [esp + 0x10]
call fcn.10010900
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x23c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4