Function at 0x4b42d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5e0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.004ec330
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x112c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1130], edi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1124], ebx
call fcn.004b62b9
test eax, eax
js 0x4b4776
lea eax, [ebp - 0x1124]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.004b7c19
pop ecx
pop ecx
test eax, eax
jne 0x4b436d
mov eax, 0x80020009
jmp 0x4b4776
mov ecx, dword [ebp - 0x112c]
call fcn.004b7861
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.004b62b9
test eax, eax
js 0x4b4776
movzx eax, word [ebp - 0x1124]
sub eax, 8
je 0x4b473c
sub eax, 9
je 0x4b45cf
dec eax
dec eax
je 0x4b44b9
sub eax, 0x3ff5
jne 0x4b475c
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b43c7
sub ecx, edx
lea eax, [ebp - 0x1120]
push 0x104
push ebx
push eax
lea esi, [ecx + 2]
call fcn.004edc70
add esp, 0xc
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1120]
push esi
mov byte [ebp - 4], 1
call fcn.004b4868
jmp 0x4b4417
mov esi, dword [ebp - 0x1120]
test esi, esi
je 0x4b4498
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x4b4472
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x4b4451
cmp byte [eax], 0x30
jne 0x4b4451
mov byte [esi], bl
inc esi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x4b446d
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4b446b
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x4b4472
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x4b4430
mov ecx, dword [ebp - 0x1130]
mov word [esi], 0
push dword [ebp - 0x1120]
push dword [ebp - 0x1134]
call fcn.004b7717
mov esi, dword [ebp - 0x1120]
mov edi, eax
jmp 0x4b449b
push 0xe
pop edi
lea eax, [ebp - 0x111c]
cmp esi, eax
je 0x4b474f
lea ecx, [ebp - 0x1120]
call fcn.004b5659
jmp 0x4b474f
mov esi, ebx
mov dword [ebp - 0x1128], esi
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b44d1
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1124]
push eax
call fcn.004b371f
add esp, 0xc
test eax, eax
js 0x4b459f
mov edi, dword [ebp - 0x1124]
cmp edi, 0x400
jg 0x4b4524
push edi
call fcn.004b7cc5
pop ecx
test al, al
je 0x4b4524
mov eax, edi
call fcn.004ec300
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4b4536
push edi
lea ecx, [ebp - 0x1128]
call fcn.004b483b
mov esi, dword [ebp - 0x1128]
push 3
shr edi, 1
lea ecx, [ebp - 0x1014]
push edi
push ecx
push eax
call fcn.004b496e
test eax, eax
je 0x4b459b
lea ecx, [ebp - 0x101c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x4b45b2
mov eax, dword [ebp - 0x101c]
push 4
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x1130]
push 4
push ebx
push dword [ebp - 0x1134]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x4b45c6
push esi
mov esi, dword [esi]
call fcn.004eb8b8
pop ecx
test esi, esi
jne 0x4b4592
mov eax, 0x8007000e
jmp 0x4b4776
push esi
mov esi, dword [esi]
call fcn.004eb8b8
pop ecx
test esi, esi
jne 0x4b45a9
mov eax, edi
jmp 0x4b4776
push esi
mov esi, dword [esi]
call fcn.004eb8b8
pop ecx
test esi, esi
jne 0x4b45bd
jmp 0x4b474f
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b45d8
sub ecx, edx
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 0x1124], ecx
test cl, 1
je 0x4b45fc
mov eax, 0x80004005
jmp 0x4b4776
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x1120]
push 0x104
push ebx
sar edi, 1
push eax
mov dword [ebp - 0x101c], edi
call fcn.004edc70
add esp, 0xc
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1120]
push edi
mov byte [ebp - 4], 5
call fcn.004b4868
mov esi, dword [ebp - 0x1128]
jmp 0x4b466b
cmp dword [ebp - 0x1120], 0
jne 0x4b4692
lea eax, [ebp - 0x111c]
test eax, eax
je 0x4b45f2
lea ecx, [ebp - 0x1120]
call fcn.004b5659
jmp 0x4b45f2
push edi
push ebx
push dword [ebp - 0x1120]
call fcn.004edc70
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x1124], ecx
test esi, esi
jle 0x4b4701
mov ebx, dword [ebp - 0x1128]
mov esi, dword [ebp - 0x1120]
mov eax, ecx
movzx ecx, byte [ebp + ecx - 0x1014]
cdq
sub eax, edx
mov edi, eax
push ecx
sar edi, 1
call fcn.004b4c44
mov edx, dword [ebp - 0x1124]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
mov ecx, dword [ebp - 0x1124]
or byte [edi + esi], al
inc ecx
mov dword [ebp - 0x1124], ecx
cmp ecx, ebx
jl 0x4b46b4
mov edi, dword [ebp - 0x101c]
xor ebx, ebx
mov eax, dword [ebp - 0x1130]
push edi
push dword [ebp - 0x1120]
push 3
push ebx
push dword [ebp - 0x1134]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x4b474f
lea ecx, [ebp - 0x1120]
call fcn.004b5659
jmp 0x4b474f
push 1
lea eax, [ebp - 0x1014]
mov ecx, edi
push eax
push esi
call fcn.004b7765
mov edi, eax
test edi, edi
je 0x4b475c
push edi
call fcn.004b4ab2
pop ecx
jmp 0x4b4776
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x112c]
call fcn.004b62b9
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 0xc