Function at 0x4dda30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
jne 0x4dda5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [0x4e5c6c]
lea eax, [esp + 0x1c]
push eax
push 0x4e2268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4ddb59
mov eax, dword [0x4e5c6c]
lea edx, [esp + 0x1c]
push edx
push 0x4e2268
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4ddac5
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 1
mov dword [ebx + 4], ebp
mov ecx, dword [0x4e5c4c]
lea eax, [ebx + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, 0x15
mov cl, byte [ecx + 0xc]
mov byte [eax + 0xc], cl
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.004df730
mov ecx, dword [0x4e5c6c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push 1
push 0x4e2268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov edx, dword [esp + 0x10]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
jmp 0x4ddc8e
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e5c6c]
lea edx, [esp + 0x14]
push edx
push ebx
push 0x4e2268
push eax
mov dword [esp + 0x24], 0xbb80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4ddbab
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
dec edx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.004df5d0
mov esi, dword [esp + 0x10]
mov edi, ebx
mov eax, dword [esi]
mov dword [esp + 0x14], eax
lea ecx, [eax + eax*2]
lea ecx, [ecx*4 + 8]
mov dword [esp + 0x18], ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], ebp
inc eax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4e5c4c]
add ecx, ebx
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov dl, byte [edx + 0xc]
mov byte [ecx + 0xc], dl
mov eax, dword [esp + 0x18]
add eax, 0xd
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004df730
mov eax, dword [0x4e5c6c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 1
push 0x4e2268
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [esp + 0x10]
push ecx
call esi
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call esi
push eax
call ebp
push ebx
call esi
push eax
call edi
push ebx
call esi
push eax
call ebp
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret