Function at 0x4d7520
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x558b7f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6f9540]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
mov dword [eax], 0x6e61b8
push 0
push 0x20019
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
lea ecx, [ebp - 0x24]
mov ebx, 1
mov dword [ebp - 0x10], ebx
push 0x80000002
mov dword [eax], 0x37
mov dword [eax + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
call fcn.0046ce50
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4d7760
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4d7760
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4d7760
xor edi, edi
test eax, eax
je 0x4d7760
mov esi, dword [ebp - 0x38]
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xff
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4d7756
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, eax
mov eax, dword [ecx]
or ebx, 0xa
mov dword [ebp - 0x18], eax
mov dword [ecx], 0x6e6190
mov dword [ebp - 0x10], ebx
test bl, 4
je 0x4d7683
mov eax, dword [esi]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x4d7673
cmp eax, 0xffffffff
je 0x4d7680
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x4d7680
push 4
push 2
push esi
call fcn.00403d20
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test bl, 2
je 0x4d76c7
mov eax, dword [ebp - 0x1c]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x4d76b5
cmp eax, 0xffffffff
je 0x4d76c4
mov eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4d76c4
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00403d20
add esp, 0xc
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d3d0
or ebx, 0x10
add esp, 8
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00429d70
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4d7711
cmp eax, 0xffffffff
je 0x4d7720
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4d7720
push 4
push 1
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x4d7744
cmp eax, 0xffffffff
je 0x4d7753
mov eax, dword [ebp - 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4d7753
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
mov ebx, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x4d7600
lea ecx, [ebp - 0x24]
call fcn.0046ce80
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00524b20
lea esp, [ebp + 0x204]
pop ebp
ret