Function at 0x4d3490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00539600
push 0xffffffffffffffff
push 0x59c130
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x8014]
mov esi, dword [ebp + 0x800c]
mov edi, dword [ebp + 0x8010]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], vtable.Utils::ResourceHolders::resource_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x5b3ea4
mov dword [ebp - 4], 1
call fcn.004917e0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov eax, dword [eax + 0x40]
push 0
or eax, 0xf003f
push eax
push 0
push 0
push 0
push dword [edi + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x34], eax
call fcn.004d5850
add esp, 4
test esi, esi
jne 0x4d3759
xor ebx, ebx
jmp 0x4d3550
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x4000
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4d3759
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x4d358e
cmp eax, 2
jne 0x4d36fc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x4000
jae 0x4d35ae
add eax, eax
cmp eax, 0x8000
jae 0x4d37a1
xor ecx, ecx
mov word [ebp + eax], cx
jmp 0x4d35b7
xor eax, eax
mov word [ebp + 0x7ffe], ax
mov esi, dword [ebp - 0x1c]
add esi, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
mov eax, esi
lea ecx, [ebp - 0x18]
shr eax, 1
push eax
call fcn.00439720
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d370b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d36aa
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp cx, word [edx]
je 0x4d36aa
mov ecx, dword [ebp - 0x28]
cmp ecx, 1
je 0x4d3632
cmp ecx, 2
jne 0x4d36aa
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4d3683
mov edi, dword [ebp - 0x18]
mov eax, edx
shr eax, 1
movzx ecx, word [edi + eax*2 - 2]
lea esi, [edi + eax*2]
cmp ecx, 0x5c
je 0x4d367d
cmp ecx, 0x2f
je 0x4d367d
test cx, cx
jne 0x4d3683
cmp edx, 4
jb 0x4d3683
lea ecx, [edi + eax*2]
movzx eax, word [ecx - 4]
cmp eax, 0x5c
je 0x4d3675
cmp eax, 0x2f
jne 0x4d3683
xor eax, eax
mov word [ecx - 4], ax
jmp 0x4d3683
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 0x18]
call fcn.0055c73b
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004daa30
mov ecx, dword [ebp - 0x38]
push 1
push dword [ebp - 0x18]
call fcn.004e2510
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d36fc
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d36dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d37a6
push edx
push ecx
call fcn.00539070
mov dword [ebp - 0x10], 0
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
inc ebx
cmp ebx, 0x7fffffff
jb 0x4d3550
jmp 0x4d3759
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d3759
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d373a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d37a6
push edx
push ecx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.Utils::ResourceHolders::resource_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__.0
test eax, eax
je 0x4d3775
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x8004]
pop ebp
ret 0xc
call fcn.0053986d
call fcn.00555b08
int3