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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bb1b
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x5c2b80]
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 dword [ebp - 0x48c], ecx
mov edx, 0x28
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
call fcn.0045f1a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x45dfd5
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x45e3ff
push 0x5c
push eax
call fcn.0052bd07
add esp, 8
test eax, eax
jne 0x45dfe9
or eax, 0xffffffff
jmp 0x45dff1
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
lea ecx, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0045eb20
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [eax]
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x45e06b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x45e05c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x45e05c
call fcn.00456280
mov dword [ebp - 0x47c], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45e051
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x47c]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x45e06b
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.004573c0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e08e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x45e09f
jmp 0x45e3e3
push 0x24c
lea eax, [ebp - 0x474]
mov dword [ebp - 0x478], 0
push 0
push eax
call fcn.0052ebd0
add esp, 0xc
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x47c]
push 0x592668
call fcn.0045ebe0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [0x5cfa10]
mov ebx, dword [eax]
test ecx, ecx
jne 0x45e14e
push 0x5cc4e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5cfa10], 0
jne 0x45e13d
push 0xa4
call fcn.0052abbc
mov esi, eax
add esp, 4
mov dword [ebp - 0x494], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x45e132
push 0xa4
push 0
push esi
call fcn.0052ebd0
add esp, 0xc
mov ecx, esi
call fcn.0046fcf0
jmp 0x45e134
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x5cfa10], eax
push 0x5cc4e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5cfa10]
lea eax, [ebp - 0x478]
mov edx, ebx
push eax
call fcn.00471420
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0
mov edx, edi
mov esi, dword [ebp - 0x47c]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e185
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
test esi, esi
je 0x45e3d2
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esp, [esp]
mov ecx, dword [0x5cfa10]
test ecx, ecx
jne 0x45e212
push 0x5cc4e4
call ebx
cmp dword [0x5cfa10], 0
jne 0x45e201
push 0xa4
call fcn.0052abbc
mov esi, eax
add esp, 4
mov dword [ebp - 0x494], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x45e1f0
push 0xa4
push 0
push esi
call fcn.0052ebd0
add esp, 0xc
mov ecx, esi
call fcn.0046fcf0
jmp 0x45e1f2
xor eax, eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x220]
mov dword [0x5cfa10], eax
push 0x5cc4e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5cfa10]
lea eax, [ebp - 0x478]
mov edx, esi
push eax
call fcn.00471560
test eax, eax
je 0x45e3d2
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.00457210
mov byte [ebp - 4], 9
mov edx, 0x59266c
mov eax, dword [ebp - 0x224]
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x45e27b
test si, si
je 0x45e277
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x45e27b
add ecx, 4
add edx, 4
test si, si
jne 0x45e255
xor ecx, ecx
jmp 0x45e280
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x45e3a0
mov edx, 0x592670
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x45e2ba
test si, si
je 0x45e2b6
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x45e2ba
add ecx, 4
add edx, 4
test si, si
jne 0x45e294
xor ecx, ecx
jmp 0x45e2bf
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x45e3a0
mov ecx, 0x5911c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45e2f7
test dx, dx
je 0x45e2f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45e2f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x45e2d1
xor eax, eax
jmp 0x45e2fc
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x45e3a0
test byte [ebp - 0x478], 0x10
je 0x45e3a0
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x488]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, eax
push 0x5923e4
lea ecx, [ebp - 0x490]
call fcn.0045ebe0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x48c]
push eax
call fcn.0045bd60
mov byte [ebp - 4], 0xa
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e37d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, edi
mov edx, dword [ebp - 0x488]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e3a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov esi, dword [ebp - 0x220]
test ecx, ecx
jg 0x45e1a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45e1a0
mov esi, dword [ebp - 0x48c]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x45e703
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e409
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
call fcn.00456bd0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x45e427
push 0x80004005
call fcn.00456ea0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
push eax
push 0
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x45e6de
test eax, eax
jne 0x45e6a0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e487
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.004573c0
mov ecx, 0x592140
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x490]
call fcn.00457210
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x488]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x480]
push ecx
push 0x20019
push 0
push dword [eax]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [ebp - 0x481]
mov byte [ebp - 4], 0x13
mov ecx, edi
mov edx, dword [ebp - 0x488]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e523
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e546
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x481], 0
je 0x45e6a0
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x47c], 0x104
call fcn.00456bd0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45e41d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 0x18
mov ecx, 0x592580
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x494]
call fcn.00457210
mov byte [ebp - 4], 0x19
lea edx, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x498]
call fcn.0045bbe0
add esp, 4
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x47c]
shr edx, 1
js 0x45e6f9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x45e5fb
push edx
lea ecx, [ebp - 0x220]
call fcn.00456e30
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x47c]
push eax
push esi
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x49c]
push 0
push dword [eax]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 0x19
mov ecx, edi
mov edx, dword [ebp - 0x498]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e642
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov ecx, edi
mov edx, dword [ebp - 0x494]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e665
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x45e683
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x220]
push eax
call fcn.0045bd60
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 0x12
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e6a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x45e476
mov esi, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x45e727
mov ecx, dword [esi]
push esi
jmp 0x45e722
push 0x80070057
call fcn.00456ea0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x45e727
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 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.0052ab62
mov esp, ebp
pop ebp
ret