Function at 0x45ff50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df510
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x527064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46026f
cmp dword [ebp - 0x10], eax
je 0x46026f
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x208
mov ebx, eax
mov dword [ebp - 0x24], edx
call fcn.004a3e8e
add esp, 4
mov dword [ebp - 0x14], 0x208
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x46006d
cmp word [edi], si
jne 0x460015
xor ecx, ecx
jmp 0x46002f
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460020
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00408f30
push edi
call fcn.004a2e5c
add esp, 4
cmp byte [ebp + 0x14], 0
jne 0x4601d4
cmp dword [ebx + 0x10], esi
jbe 0x45ffd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x490
je 0x460135
cmp esi, 2
je 0x460135
cmp esi, 0xea
jne 0x460238
test edi, edi
je 0x46009b
push edi
call fcn.004a2e5c
add esp, 4
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3e8e
add esp, 4
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [edi], 0
mov esi, eax
jne 0x4600da
xor eax, eax
jmp 0x4600ef
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4600e0
sub eax, edx
sar eax, 1
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push eax
push edi
call fcn.00408f30
push edi
call fcn.004a2e5c
add esp, 4
test esi, esi
jne 0x4601ea
cmp byte [ebp + 0x14], 0
jne 0x4601d4
cmp dword [ebx + 0x10], esi
jbe 0x45ffd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
push 0x2710
push 4
push 0
push dword [ebp + 8]
call fcn.0045f8c0
mov esi, eax
cmp esi, 0x642
je 0x4601d4
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [ebp - 0x1c]
sub eax, ebx
mov ebx, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x24]
add ebx, eax
mov dword [ebp - 0x18], ebx
adc esi, edx
mov dword [ebp - 0x1c], esi
test esi, esi
ja 0x460184
jb 0x45ffd0
cmp ebx, dword [ebp + 0x18]
jb 0x45ffd0
push str...includeMcRegistryMon.cpp
push str.CRegMonitor::MonitorRegistryValue
push 0xc7
push 3
lea ecx, [ebp + 0x14]
call fcn.00431610
mov byte [ebp - 4], 7
mov edx, str.Timeout_occured__stopped_monitoring_the_registry_value._Total_Timeout:
mov ecx, dword [eax]
push esi
push ebx
call fcn.004333c0
mov ecx, eax
call fcn.00460460
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x14]
call fcn.004327d0
mov eax, dword [ebp + 0x14]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 0x5b4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str...includeMcRegistryMon.cpp
push str.CRegMonitor::MonitorRegistryValue
push 0xb3
push 4
lea ecx, [ebp + 0x14]
call fcn.00431610
mov byte [ebp - 4], 3
mov edx, str.Failed_to_query_data_from_key:
mov ecx, dword [eax]
call fcn.004333c0
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.00433720
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x14]
call fcn.004327d0
mov eax, dword [ebp + 0x14]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4601d4
push str...includeMcRegistryMon.cpp
push str.CRegMonitor::MonitorRegistryValue
push 0xbf
push 4
lea ecx, [ebp + 0x14]
call fcn.00431610
mov byte [ebp - 4], 5
mov edx, str.Error_occured_while_quering_data
mov ecx, dword [eax]
push esi
call fcn.00433720
mov ecx, eax
call fcn.0043a5d0
mov byte [ebp - 4], 6
jmp 0x460221
push str...includeMcRegistryMon.cpp
push str.CRegMonitor::MonitorRegistryValue
push 0x89
push 3
lea ecx, [ebp + 0x14]
call fcn.00431610
mov byte [ebp - 4], 1
mov edx, str.Sub_key_not_found_:
mov ecx, dword [eax]
call fcn.004333c0
mov edx, ebx
mov ecx, eax
call fcn.00433720
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
call fcn.004327d0
mov eax, dword [ebp + 0x14]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18