Function at 0x4e4d30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538cea
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
call fcn.0040b5a0
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x278], 0x104
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x258]
test eax, eax
jne 0x4e523a
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e521d
mov ebx, dword [ebp - 0x25c]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x248], ebx
push 0x55e15c
push eax
call fcn.00426990
add esp, 0xc
cmp eax, 1
jne 0x4e4f9c
call fcn.00401980
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4e5230
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4e4e9c
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x4e4ea0
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 8
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0x55e168
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e4f50
cmp dword [ebp - 0x27c], 3
jne 0x4e4f50
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x284]
sbb eax, dword [ebp - 0x26c]
push 0
push 0xa
push eax
push ecx
call fcn.0049b990
push 0
push 0x3e8
push edx
push eax
call fcn.0049b990
push 0
push 0x3e8
push edx
push eax
call fcn.0049b990
test edx, edx
jl 0x4e4fa5
jg 0x4e4f50
cmp eax, 0x15180
jbe 0x4e4fa5
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e4f9c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e4f92
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
jmp 0x4e51f7
mov ecx, edx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
jmp 0x4e51f7
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 3
push eax
push 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x23c], 0
push eax
push 0
push 0x55e17c
push ebx
mov dword [ebp - 0x234], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e51b4
cmp dword [ebp - 0x280], 7
jne 0x4e51b4
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x254]
shr eax, 1
mov dword [ebp - 0x234], eax
add eax, eax
push eax
call fcn.00405210
mov edi, dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
push edi
push 0x55e18c
lea ecx, [ebp - 0x248]
call fcn.004268d0
test eax, eax
jne 0x4e5177
mov eax, dword [ebp - 0x250]
xor esi, esi
sub eax, edi
mov dword [ebp - 0x23c], eax
je 0x4e5177
mov ebx, edi
lea edx, [ebx + esi]
test edx, edx
jne 0x4e5073
xor eax, eax
jmp 0x4e508f
mov eax, edx
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e5080
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x268]
call fcn.00402d50
mov ecx, dword [ebp - 0x268]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x264], 1
lea esi, [esi + eax*2]
add esi, 2
cmp dword [ecx - 0xc], 0
jle 0x4e515f
mov eax, dword [ebp - 0x274]
add ecx, 0xfffffff0
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x294], eax
call fcn.004021e0
add eax, 0x10
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2a0]
push dword [ebp - 0x260]
push eax
push ecx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x230]
call fcn.00426320
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x290]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e515f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e515d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e515f
call edi
cmp esi, dword [ebp - 0x23c]
jb 0x4e5068
mov ebx, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x254]
test edi, edi
je 0x4e51ae
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x254]
sub eax, edi
push eax
push edi
call fcn.00405350
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e51ed
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e51e9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4e51ed
mov ecx, edx
call esi
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4e5208
push ebx
call esi
mov dword [ebp - 0x248], 0
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x244], 0
jmp 0x4e4da2
mov byte [ebp - 4], 0
mov dword [ebp - 0x244], 0
jmp 0x4e4da2
push 0x80004005
call fcn.00401b40
lea esi, [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebx + 0x28]
lea eax, [ebp - 0x230]
cmp edx, eax
je 0x4e5273
mov ecx, dword [edx]
mov eax, dword [ebp - 0x230]
mov dword [edx], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [ebp - 0x22c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
push eax
push dword [eax]
lea eax, [ebp - 0x260]
push eax
call fcn.00425eb0
push dword [ebp - 0x230]
call fcn.0049aa1d
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret