Function at 0x10004760
Capabilities:
Set registry value

Disassembly:
mov eax, 0x211c
call fcn.10096d00
mov eax, dword [0x100bb300]
xor eax, esp
mov dword [esp + 0x2118], eax
mov eax, dword [esp + 0x2124]
push ebp
mov ebp, dword [esp + 0x2124]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x124]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.100045f0
test eax, eax
jl 0x10004a5e
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x12c]
call fcn.10004440
add esp, 4
test eax, eax
jne 0x100047dc
mov eax, 0x80020009
jmp 0x10004a5d
call fcn.100045a0
lea eax, [esp + 0x128]
mov ecx, esi
call fcn.100045f0
xor esi, esi
cmp eax, esi
jl 0x10004a5d
movzx eax, word [esp + 0x10]
cmp eax, 0x13
jg 0x10004985
je 0x1000493f
cmp eax, 8
je 0x1000490f
cmp eax, 0x11
jne 0x10004a46
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x10004881
cdq
sub eax, edx
mov ebp, eax
xor eax, eax
sar ebp, 1
mov dword [esp + 0x24], esi
cmp eax, esi
ja 0x1000484a
cmp ebp, 0xffffffff
jbe 0x10004854
push 0x80070057
call fcn.10001ee0
cmp ebp, 0x100
jbe 0x1000488b
lea eax, [esp + 0x24]
push eax
mov eax, ebp
call fcn.10001750
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x10004893
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x10004881
lea eax, [esp + 0x24]
call fcn.10005f20
mov eax, 0x80004005
jmp 0x10004a5d
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
push ebp
push esi
push eax
call fcn.10087b80
add esp, 0xc
cmp ebx, esi
jle 0x100048d5
mov eax, dword [esp + 0x24]
mov cx, word [esp + esi*2 + 0x128]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.100044f0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x100048a2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov ebx, eax
lea eax, [esp + 0x28]
cmp dword [esp + 0x24], eax
je 0x10004a39
lea eax, [esp + 0x24]
call fcn.10005f20
jmp 0x10004a39
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x12c]
push eax
push 1
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov ebx, eax
jmp 0x10004a39
lea edx, [esp + 0x18]
push edx
push esi
push esi
lea eax, [esp + 0x134]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.DLL_VarUI4FromDisp]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push esi
push edi
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
lea esi, [esp + 0x10]
mov ebx, eax
call fcn.10005db0
jmp 0x10004a39
cmp eax, 0x4008
jne 0x10004a46
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [esp + 0x24], esi
add eax, 2
lea esi, [esp + 0x24]
call fcn.10005ea0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10004a23
cmp word [esp + 0x128], 0
lea esi, [esp + 0x128]
je 0x10004a00
mov ebx, dword [sym.imp.USER32.DLL_CharNextW]
mov edi, edi
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x100049f1
cmp word [eax], 0x30
jne 0x100049f1
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x100049fa
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x100049d0
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [edi + 2], cx
mov edx, dword [esp + 0x24]
push edx
push eax
push ebp
call fcn.10003cb0
mov edi, dword [esp + 0x24]
mov ebx, eax
jmp 0x10004a28
mov ebx, 0xe
lea ecx, [esp + 0x28]
cmp edi, ecx
je 0x10004a39
lea eax, [esp + 0x24]
call fcn.10005f20
test ebx, ebx
je 0x10004a46
mov eax, ebx
call fcn.10003980
jmp 0x10004a5d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
call fcn.100045f0
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
pop ebx
mov ecx, dword [esp + 0x2124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10083dbb
add esp, 0x211c
ret 8