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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ef03
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x5d2fec]
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 - 0x4cc], edx
mov edi, ecx
mov dword [ebp - 0x49c], edi
xor eax, eax
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov dword [ebp - 0x468], eax
mov ebx, 0x20019
test edx, edx
jle 0x4109e5
nop dword [eax + eax]
lea edi, [edi + eax*4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jge 0x40fbd0
or ecx, 0xffffffff
jmp 0x40fbed
push str.Wow6432Node_
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40fbe9
or ecx, 0xffffffff
jmp 0x40fbed
sub ecx, dword [edi]
sar ecx, 1
mov eax, ebx
or eax, 0x100
test ecx, ecx
cmovns eax, ebx
mov ebx, eax
mov dword [ebp - 0x498], ebx
call fcn.00417ce3
test eax, eax
je 0x4109ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov eax, 0x5af8f0
mov byte [ebp - 4], 1
shr eax, 0x10
mov dword [ebp - 0x4a8], eax
test eax, eax
jne 0x40fe85
mov eax, 0x5af8f0
movzx esi, ax
push esi
call fcn.00419421
test eax, eax
je 0x40fc57
push esi
push eax
lea ecx, [ebp - 0x430]
call fcn.004066a0
or esi, 0xffffffff
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push edi
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x454], ecx
call fcn.004069a0
lea edx, [ebp - 0x430]
lea ecx, [ebp - 0x43c]
call fcn.004047c0
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x454], ecx
push eax
call fcn.004069a0
call fcn.00404900
add esp, 4
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x44c]
push ecx
push ebx
mov ebx, dword [ebp - 0x430]
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410943
push 0x20a
push eax
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x440], 0x20a
call fcn.00417ce3
test eax, eax
je 0x4109ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x438], edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41091c
inc dword [ebp - 0x464]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x438]
push 0x5af300
push eax
call fcn.00406ff0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00551910
push 0x5af8ec
lea eax, [ebp - 0x430]
mov dword [ebp - 0x440], 0x20a
push eax
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x434], 0
push eax
call fcn.00406a20
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.00405ab0
add esp, 0x30
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x4a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fdd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x498]
push 0
push dword [ebp - 0x434]
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x438]
test eax, eax
jne 0x4108ca
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x444], 0x20a
mov dword [ebp - 0x448], 1
call fcn.00417ce3
test eax, eax
je 0x4109ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x4a8], 0
mov byte [ebp - 4], 8
jne 0x40fe9c
mov eax, 0x5af8f0
movzx eax, ax
push eax
call fcn.00419421
test eax, eax
je 0x40feb4
mov edx, 0x5af8f0
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004066a0
jmp 0x40feae
push 0
push 0x5af8f0
lea ecx, [ebp - 0x430]
call fcn.00406bd0
jmp 0x40fc5a
push 0
push 0x5af8f0
lea ecx, [ebp - 0x42c]
call fcn.00406bd0
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x448]
push eax
push 0
push 0
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x460], eax
call fcn.0040c890
cmp dword [ebp - 0x460], 0
mov byte [ebp - 4], 0xa
jne 0x410287
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push 0x5af300
push eax
call fcn.00406ff0
add esp, 8
lea eax, [ebp - 0x42c]
mov ecx, esp
mov dword [ebp - 0x454], ecx
push eax
call fcn.004069a0
lea ecx, [ebp - 0x4ac]
call fcn.00403940
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov esi, dword [ebp - 0x490]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40ffa0
cmp dword [esi + 0xc], 0
jl 0x40ff91
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40ff91
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x460], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ff86
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x460]
add eax, 0x10
mov dword [ebp - 0x490], eax
jmp 0x40ffa0
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x490]
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ffc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x490]
mov eax, 0x5af8f0
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40fff6
test dx, dx
je 0x40fff2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40fff6
add ecx, 4
add eax, 4
test dx, dx
jne 0x40ffd0
xor eax, eax
jmp 0x40fffb
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 0x42c]
test eax, eax
sete al
test al, al
je 0x41020d
mov edx, dword [ebp - 0x470]
lea ecx, [esi - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x45c], edx
cmp ecx, edx
je 0x410091
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x460], eax
jl 0x41007f
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41007f
push ecx
call fcn.00406c80
mov edx, dword [ebp - 0x460]
add esp, 4
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410074
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [ebp - 0x470], eax
jmp 0x41008e
push dword [esi - 0xc]
lea ecx, [ebp - 0x470]
push esi
call fcn.00406bd0
lea ecx, [esi - 0x10]
lea edx, [edi - 0x10]
cmp edx, ecx
je 0x4100f6
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x4100e1
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4100e1
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4100d6
mov esi, dword [ebp - 0x454]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
jmp 0x4100f6
push dword [edi - 0xc]
lea ecx, [ebp - 0x42c]
push edi
call fcn.00406bd0
mov esi, dword [ebp - 0x42c]
push ecx
mov ecx, esp
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x454], ecx
call fcn.004069a0
lea ecx, [ebp - 0x4b0]
call fcn.00403940
add esp, 4
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
mov ecx, dword [ebp - 0x490]
add ecx, 0xfffffff0
mov dword [ebp - 0x45c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4101a8
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x458], eax
jl 0x410199
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x410199
push dword [ebp - 0x454]
call fcn.00406c80
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41018e
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x490], eax
jmp 0x4101a8
push dword [edx - 0xc]
lea ecx, [ebp - 0x490]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4b0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4101ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x490]
mov ecx, 0x5af8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4101fb
test dx, dx
je 0x4101f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4101fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4101d5
xor eax, eax
jmp 0x410200
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4108a0
mov ecx, dword [ebp - 0x494]
lea edx, [edi - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x458], ecx
cmp edx, ecx
je 0x410418
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x454], eax
jl 0x410409
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x410409
push edx
call fcn.00406c80
mov edx, dword [ebp - 0x454]
add esp, 4
mov dword [ebp - 0x45c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410279
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x45c]
add eax, 0x10
mov dword [ebp - 0x494], eax
jmp 0x410418
lea ecx, [esi - 0x10]
lea edx, [edi - 0x10]
mov dword [ebp - 0x454], ecx
cmp edx, ecx
je 0x4102f5
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x4102e0
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4102e0
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4102d5
mov esi, dword [ebp - 0x454]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
jmp 0x4102f5
push dword [edi - 0xc]
lea ecx, [ebp - 0x42c]
push edi
call fcn.00406bd0
mov esi, dword [ebp - 0x42c]
push ecx
mov ecx, esp
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x454], ecx
call fcn.004069a0
lea ecx, [ebp - 0x4b4]
call fcn.00403940
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
mov ecx, dword [ebp - 0x490]
add ecx, 0xfffffff0
mov dword [ebp - 0x45c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4103a7
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x458], eax
jl 0x410398
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x410398
push dword [ebp - 0x454]
call fcn.00406c80
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41038d
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x490], eax
jmp 0x4103a7
push dword [edx - 0xc]
lea ecx, [ebp - 0x490]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4103c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x490]
mov ecx, 0x5af8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4101fb
test dx, dx
je 0x4101f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4101fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103d4
xor eax, eax
jmp 0x410200
push dword [edi - 0xc]
lea ecx, [ebp - 0x494]
push edi
call fcn.00406bd0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x4b8]
push str.HKEY_CLASSES_ROOTCLSID_
push eax
call fcn.00406490
add esp, 0xc
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
mov dword [ebp - 0x45c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4104c8
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
mov dword [ebp - 0x458], ebx
mov ebx, dword [ebp - 0x430]
jl 0x4104b9
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4104b9
mov eax, dword [ebp - 0x454]
push eax
call fcn.00406c80
mov dword [ebp - 0x454], eax
add esp, 4
mov eax, dword [ebp - 0x458]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4104a8
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x478], eax
jmp 0x4104c8
push dword [edx - 0xc]
lea ecx, [ebp - 0x478]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4104ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
lea eax, [ebp - 0x490]
push eax
mov dword [ebp - 0x454], ecx
call fcn.004069a0
lea ecx, [ebp - 0x4bc]
call fcn.004031f0
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
mov ecx, dword [ebp - 0x490]
add ecx, 0xfffffff0
mov dword [ebp - 0x45c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x41059c
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x458], eax
jl 0x41058d
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x41058d
push dword [ebp - 0x454]
call fcn.00406c80
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410582
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x490], eax
jmp 0x41059c
push dword [edx - 0xc]
lea ecx, [ebp - 0x490]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4bc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4105be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ebp - 0x49c]
push 0x5af8ec
lea eax, [edx + ecx*4]
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.00406a20
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00405ab0
add esp, 0x18
mov byte [ebp - 4], 0x11
mov edx, dword [eax]
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
mov dword [ebp - 0x45c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x410689
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x458], eax
jl 0x41067a
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x41067a
push dword [ebp - 0x454]
call fcn.00406c80
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41066f
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x474], eax
jmp 0x410689
push dword [edx - 0xc]
lea ecx, [ebp - 0x474]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0x10
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x494]
call fcn.004136a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x480]
add edx, 0xfffffff0
mov dword [ebp - 0x45c], edx
lea ecx, [eax - 0x10]
mov dword [ebp - 0x454], ecx
lea ecx, [eax - 0x10]
cmp ecx, edx
je 0x41076a
cmp dword [edx + 0xc], 0
lea ebx, [edx + 0xc]
mov dword [ebp - 0x458], ebx
mov ebx, dword [ebp - 0x430]
jl 0x41075b
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x41075b
mov ecx, dword [ebp - 0x454]
push ecx
call fcn.00406c80
mov dword [ebp - 0x454], eax
add esp, 4
mov eax, dword [ebp - 0x458]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41074a
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x480], eax
jmp 0x41076a
push dword [eax - 0xc]
lea ecx, [ebp - 0x480]
push eax
call fcn.00406bd0
mov eax, dword [ebp - 0x470]
mov ecx, 0x5af8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41079b
test dx, dx
je 0x410797
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41079b
add eax, 4
add ecx, 4
test dx, dx
jne 0x410775
xor eax, eax
jmp 0x4107a0
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x41087b
push ecx
mov ecx, esp
lea eax, [ebp - 0x490]
push eax
mov dword [ebp - 0x454], ecx
call fcn.004069a0
lea ecx, [ebp - 0x4c8]
call fcn.004045b0
add esp, 4
mov byte [ebp - 4], 0x12
mov edx, dword [eax]
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff0
lea eax, [edx - 0x10]
mov dword [ebp - 0x454], eax
cmp eax, ecx
je 0x410859
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x458], eax
jl 0x41084a
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x41084a
push dword [ebp - 0x454]
call fcn.00406c80
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41083f
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ebp - 0x470], eax
jmp 0x410859
push dword [edx - 0xc]
lea ecx, [ebp - 0x470]
push edx
call fcn.00406bd0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41087b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x2c
lea eax, [ebp - 0x494]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x494]
call fcn.0040ca30
or eax, 0xffffffff
mov byte [ebp - 4], 7
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4108c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4108eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x464]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40fd40
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410943
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
cmp dword [0x5dd608], 0
jne 0x4109b8
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41096d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x410988
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x468]
inc eax
mov dword [ebp - 0x468], eax
cmp eax, dword [ebp - 0x4cc]
jge 0x4109e5
mov ebx, dword [ebp - 0x498]
mov edi, dword [ebp - 0x49c]
jmp 0x40fbc0
push 0x80004005
call fcn.00407010
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4109ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4109e5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x410a04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0054e73a
mov esp, ebp
pop ebp
ret