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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dbdc
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x4d01d5
push 0x1c9
push 0x594e18
call fcn.0045b590
test eax, eax
je 0x4d01d5
int3
cmp dword [ebp + 0x10], 0
je 0x4d01f5
cmp dword [ebp + 0xc], 0
jne 0x4d01f5
push 0x1ca
push 0x594e50
call fcn.0045b590
test eax, eax
je 0x4d01f5
int3
lea ecx, [ebp - 0x1c]
call fcn.0040ac00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ac00
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0x80000000
jne 0x4d023b
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
push str.CLSID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c9f00
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4d0477
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp + 8], ecx
cmp dword [ebp + 0x18], 0x80000000
jne 0x4d0284
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
test eax, eax
jne 0x4d0284
jmp 0x4d0252
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004a5630
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004a5630
cmp dword [ebp + 0x18], 0x80000000
jne 0x4d0313
lea ecx, [ebp - 0x1c]
call fcn.0040b370
movzx eax, al
test eax, eax
je 0x4d0313
mov ecx, dword [ebp - 0x28]
push ecx
push str.Warning:_skipping_empty_key__s._n
push 0
mov ecx, 0x5c97e4
call fcn.0040d7e0
push eax
push 0x1e5
push 0x594e94
lea ecx, [ebp - 0x240]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
jmp 0x4d0252
cmp dword [ebp + 0x14], 0
jne 0x4d03e8
mov dword [ebp - 0x238], 0x200
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d7e0
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x4d03e8
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0046ed60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4d03e3
lea ecx, [ebp - 0x1c]
call fcn.0040d7e0
push eax
lea edx, [ebp - 0x234]
push edx
push str.Warning:_Leaving_value__s_for_key__s_in_registry_n
push 0
mov ecx, 0x5c97e4
call fcn.0040d7e0
push eax
push 0x1f3
push 0x594f18
lea ecx, [ebp - 0x248]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.0040d7e0
push eax
push str._tintended_value_was__s._n
push 0
mov ecx, 0x5c97e4
call fcn.0040d7e0
push eax
push 0x1f5
push 0x594fbc
lea ecx, [ebp - 0x250]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
jmp 0x4d0252
lea ecx, [ebp - 0x18]
call fcn.0040d7e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d7e0
push eax
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040d7e0
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4d0472
lea ecx, [ebp - 0x18]
call fcn.0040d7e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d7e0
push eax
push str.Error:_failed_setting_key__s_to_value__s._n
push 0
mov ecx, 0x5c97e4
call fcn.0040d7e0
push eax
push 0x200
push 0x59502c
lea ecx, [ebp - 0x258]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x18
cmp dword [ebp - 0x2c], 5
je 0x4d0470
mov dword [ebp - 0x20], 0
jmp 0x4d0477
jmp 0x4d0252
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0046fc40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ad40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040ad40
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret 0x14