Function at 0x4d9d62
Capabilities:
Set registry value

Disassembly:
add byte [eax], al
mov dword [esp + 0x18], eax
mov eax, dword [0x62271c]
shl eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [eax + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4d9d8c
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push 0
mov eax, dword [eax + ecx]
or byte [ebx + 0x29c80], cl
add byte [ebx + 0x8480], cl
add byte [0x20006], cl
push eax
push 0
push 0x4f5b70
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4d9fd4
dec edi
cmp edi, 6
ja case.0x4d9dd6.5
jmp dword [edi*4 + 0x4da044]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
push ebp
push 1
push 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x4d9fca
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
push ebp
push 2
jmp 0x4d9df0
mov eax, dword [esp + 0x10]
lea eax, [eax*2 + 4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d9e3f
lea esi, [eax + 0xe]
jmp 0x4d9fca
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc eax
push eax
push ebp
push edi
call fcn.004e6a80
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add esp, 0xc
mov word [edi + eax*2 + 2], cx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4d9e7d
cmp word [edi + edx*2 - 2], 0xa
jne 0x4d9e7d
dec edx
xor eax, eax
mov dword [esp + 0x10], edx
mov word [edi + edx*2], ax
mov edx, dword [esp + 0x10]
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x4d9ea9
mov esi, eax
nop dword [eax]
cmp si, 0xa
jne 0x4d9e9b
xor eax, eax
mov word [ecx], ax
movzx eax, word [ecx + 2]
add ecx, 2
mov esi, eax
test ax, ax
jne 0x4d9e90
test edx, edx
je 0x4d9eb2
lea eax, [edx + 2]
jmp 0x4d9eb4
xor eax, eax
add eax, eax
push eax
push edi
push 7
push 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4d9fca
push ebx
call fcn.004a2d80
add esp, 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 4
push eax
push 4
jmp 0x4d9df0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
test al, 1
jne case.0x4d9dd6.5
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4d9f2d
lea esi, [eax + 0xe]
jmp 0x4d9fca
xor edx, edx
xor ebx, ebx
cmp dword [esp + 0x20], edx
jle 0x4d9f9e
mov ebp, dword [esp + 0x18]
nop dword [eax + eax]
cmp ebx, esi
jge 0x4d9f9e
xor ecx, ecx
lea esi, [ecx + 0x10]
nop dword [eax]
mov edi, ecx
movzx ecx, word [ebp + edx*2]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x4d9f65
lea eax, [ecx - 0x30]
jmp 0x4d9f7f
lea eax, [ecx - 0x41]
cmp ax, 5
ja 0x4d9f73
lea eax, [ecx - 0x37]
jmp 0x4d9f7f
lea eax, [ecx - 0x61]
cmp ax, 5
ja 0x4d9fa7
lea eax, [ecx - 0x57]
mov ecx, esi
inc edx
imul ecx, eax
add ecx, edi
sub esi, 0xf
jns 0x4d9f50
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov byte [ebx + edi], cl
inc ebx
cmp edx, dword [esp + 0x20]
jl 0x4d9f40
push ebx
push edi
push 3
jmp 0x4d9eba
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x57
jmp 0x4d9fd4
mov esi, 0x57
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword fs:[0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4d9ff7
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
mov eax, dword [eax + 0x29c]
mov dword [eax + 0x3c], esi
test esi, esi
je 0x4da013
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0046fe00
jmp 0x4da02b
mov eax, dword [esp + 0x2c]
mov dword [eax + 8], 0
mov dword [eax], 0x4f5b70
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x230
ret