Function at 0x506170
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x5870df
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x732480]
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], 0x71f0d0
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.004c0ec0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
test eax, eax
je 0x5063b0
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 0x5063b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5063b0
xor edi, edi
test eax, eax
je 0x5063b0
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 0x5063a6
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042aa50
add esp, 0xc
mov ecx, eax
mov eax, dword [ecx]
or ebx, 0xa
mov dword [ebp - 0x18], eax
mov dword [ecx], 0x71f078
mov dword [ebp - 0x10], ebx
test bl, 4
je 0x5062d3
mov eax, dword [esi]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x5062c3
cmp eax, 0xffffffff
je 0x5062d0
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x5062d0
push 4
push 2
push esi
call fcn.00425140
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test bl, 2
je 0x506317
mov eax, dword [ebp - 0x1c]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x506305
cmp eax, 0xffffffff
je 0x506314
mov eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x506314
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00425140
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.0042ee60
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.00411c70
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x506361
cmp eax, 0xffffffff
je 0x506370
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x506370
push 4
push 1
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x506394
cmp eax, 0xffffffff
je 0x5063a3
mov eax, dword [ebp - 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x5063a3
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov ebx, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x506250
lea ecx, [ebp - 0x24]
call fcn.004c0ef0
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.00553392
lea esp, [ebp + 0x204]
pop ebp
ret