Function at 0x4d5ae0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x210c]
mov eax, 0x210c
call fcn.00551470
push 0xffffffffffffffff
push 0x69a598
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x73d6e0]
xor eax, ebp
mov dword [ebp + 0x2108], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov edi, dword [ebp + 0x2114]
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0x2118]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x211c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp + 0x108]
push eax
call fcn.004d6d30
test eax, eax
js 0x4d5e86
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.004d8ff0
add esp, 8
test eax, eax
jne 0x4d5b7f
mov eax, 0x80020009
jmp 0x4d5e86
mov ecx, esi
call fcn.004d86e0
lea eax, [ebp + 0x108]
push eax
mov ecx, esi
call fcn.004d6d30
test eax, eax
js 0x4d5e86
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x4d5d6c
je 0x4d5d06
cmp eax, 8
je 0x4d5cee
cmp eax, 0x11
jne 0x4d5e73
lea ebx, [ebp + 0x108]
lea ecx, [ebx + 2]
lea ebx, [ebx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4d5bd0
sub ebx, ecx
sar ebx, 1
mov dword [ebp + 0x104], ebx
test bl, 1
jne 0x4d5c67
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
push 0x104
push 0
lea eax, [ebp]
push eax
call fcn.00549c70
add esp, 0xc
mov dword [ebp], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp]
call fcn.004d5eb0
mov dword [ebp - 4], 4
jmp 0x4d5c49
mov eax, dword [ebp]
test eax, eax
jne 0x4d5c71
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4d5c67
lea ecx, [ebp]
call fcn.004d66d0
mov eax, 0x80004005
jmp 0x4d5e86
push esi
push 0
push eax
call fcn.00549c70
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4d5cb6
mov esi, edi
shr esi, 1
add esi, dword [ebp]
movzx eax, word [ebp + edi*2 + 0x108]
push eax
call fcn.004d6120
add esp, 4
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, ebx
jl 0x4d5c83
mov esi, dword [ebp - 0x14]
push esi
push dword [ebp]
push 3
push 0
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4d5e61
lea ecx, [ebp]
call fcn.004d66d0
jmp 0x4d5e61
push 1
lea eax, [ebp + 0x108]
push eax
push ebx
mov ecx, edi
call fcn.004d8610
mov esi, eax
jmp 0x4d5e61
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
lea eax, [ebp + 0x104]
push eax
push 0
push 0
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x4d5d48
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004d36c0
mov eax, esi
jmp 0x4d5e86
push dword [ebp + 0x104]
push ebx
mov ecx, edi
call fcn.004d8520
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004d36c0
jmp 0x4d5e61
cmp eax, 0x4008
jne 0x4d5e73
lea ecx, [ebp + 0x108]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d5d80
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp]
push eax
call fcn.00549c70
add esp, 0xc
mov dword [ebp], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp]
call fcn.004d5ef0
mov dword [ebp - 4], 0
jmp 0x4d5ddc
mov esi, dword [ebp]
test esi, esi
je 0x4d5e45
lea edi, [ebp + 0x108]
cmp word [ebp + 0x108], 0
je 0x4d5e2f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x4d5e20
cmp word [eax], 0x30
jne 0x4d5e20
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x4d5e29
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x4d5e00
xor eax, eax
mov dword [esi], eax
push dword [ebp]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.004d8540
mov esi, eax
jmp 0x4d5e4a
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4d5e61
lea ecx, [ebp]
call fcn.004d66d0
test esi, esi
je 0x4d5e70
push esi
call fcn.004d60c0
add esp, 4
jmp 0x4d5e86
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x28]
mov ecx, esi
call fcn.004d6d30
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2108]
xor ecx, ebp
call fcn.005472b9
lea esp, [ebp + 0x210c]
pop ebp
ret 0xc