Function at 0x49de80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2625
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00416550
mov eax, dword [0x4bf070]
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 esi, ecx
mov dword [ebp - 0x2014], esi
mov dword [ebp - 0x202c], esi
mov dword [ebp - 0x2024], 0
mov dword [ebp - 4], 3
mov dword [esi], 0
call fcn.0040c560
mov ecx, eax
test ecx, ecx
jne 0x49deec
push 0x80004005
call fcn.0040c2a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49df01
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49df03
call edx
add eax, 0x10
mov dword [esi], eax
push 0x4b7e58
lea edx, [ebp + 8]
mov dword [ebp - 0x2024], 1
lea ecx, [ebp - 0x2014]
call fcn.00408ae0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x2028]
call fcn.00408bd0
add esp, 8
lea ecx, [ebp - 0x201c]
push ecx
push 0x20019
push 0
push dword [eax]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x2028]
test eax, eax
sete byte [ebp - 0x201d]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x49dfac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2018], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dfa6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x49dfac
call dword [ebp - 0x2018]
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp - 0x2014]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49dff4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2018], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dfec
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x49dff4
mov ecx, edx
call dword [ebp - 0x2018]
cmp byte [ebp - 0x201d], 0
je 0x49e05c
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004179d0
add esp, 0xc
mov dword [ebp - 0x2014], 0x2000
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49e05c
lea eax, [ebp - 0x2010]
push eax
push 0x4b7e5c
push esi
call fcn.0040ae40
add esp, 0xc
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49e0ad
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2014], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e0a5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x49e0ad
mov ecx, edx
call dword [ebp - 0x2014]
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49e0f2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2014], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e0ea
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x49e0f2
mov ecx, edx
call dword [ebp - 0x2014]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x49e125
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e121
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x49e125
mov ecx, edx
call edi
mov eax, esi
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.0041553e
mov esp, ebp
pop ebp
ret