Function at 0x451120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db120
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x65afd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor bl, bl
mov byte [ebp - 0x11], bl
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], 0
je 0x4511eb
lea edx, [ecx + 0xc]
cmp dword [edx], 0
jge 0x451186
cmp dword [eax - 8], 0
jl 0x4514d5
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x4511eb
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4511cf
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], esi
cmp eax, vtable.ATL::CAtlStringMgr.0
mov esi, dword [ebp + 0x14]
push ecx
jne 0x4514e9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], esi
cmp eax, vtable.ATL::CWin32Heap.0
mov esi, dword [ebp + 0x14]
jne 0x4514df
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4514f3
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x451464
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x451272
cmp word [eax], 0
je 0x451272
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
push 0x20019
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0042f890
test eax, eax
jne 0x451252
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], esi
jmp 0x451255
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
test eax, eax
je 0x45126b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], 0x3e8
push 0x3e8
call fcn.00462180
add esp, 4
mov edi, eax
push 0x3e8
push 0
push edi
call fcn.005ad460
add esp, 0xc
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
call fcn.0042f990
test eax, eax
jne 0x4512fd
test edi, edi
jne 0x4512ea
xor ecx, ecx
push ecx
push edi
mov ecx, dword [ebp + 0x14]
call fcn.004020e5
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x45142f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4512f0
jmp 0x45133c
lea eax, [ebp + 0xc]
push eax
push edi
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.004532b0
test eax, eax
jne 0x451354
test edi, edi
jne 0x45132c
xor ecx, ecx
push ecx
push edi
mov ecx, dword [ebp + 0x14]
call fcn.004020e5
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x45142f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451331
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, dword [ebp + 0x14]
call fcn.004020e5
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x45142f
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45139a
cmp dword [ebp + 0xc], 4
jne 0x45139a
push dword [ebp - 0x18]
push 0x62ddcc
push dword [ebp + 0x14]
call fcn.0043ba70
add esp, 0xc
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x45142f
mov dword [ebp - 0x28], 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4513e0
cmp dword [ebp + 0xc], 0xb
jne 0x4513e0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str._I64
push dword [ebp + 0x14]
call fcn.0043ba70
add esp, 0x10
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x45142f
call fcn.00419ac0
cmp dword [eax + 4], 1
jl 0x45142f
push 1
push ecx
call fcn.00419ac0
add esp, 4
mov ecx, eax
call fcn.00419ef0
mov esi, eax
call fcn.00419ac0
mov edx, esi
mov ecx, eax
call fcn.00411b50
mov edx, str.Cant_handle_Registry_value_for:
mov ecx, eax
call fcn.004115a0
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.004115a0
push eax
call fcn.004127a0
add esp, 4
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push edi
call fcn.0046217b
add esp, 4
cmp esi, dword [ebp + 8]
je 0x451459
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x4514bf
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004022df
mov ecx, edx
call dword [ebp - 0x1c]
jmp 0x4511cf
mov ecx, edx
call dword [ebp - 0x1c]
jmp 0x4511cf
mov ecx, edi
call edx
jmp 0x4511e6