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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0574
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x50], 0x208
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x1004d9c7
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1004ce73
push 0x104
lea ecx, [ebp - 0x24]
call fcn.10001860
mov edi, dword [ebp - 0x24]
cmp dword [edi - 8], 0x104
jl 0x1004da1f
xor eax, eax
mov dword [edi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [edi + 0x208], ax
lea eax, [ebp - 0x50]
push eax
push edi
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [edi - 8]
mov esi, eax
push edi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x1004da1f
cmp eax, dword [edi - 8]
jg 0x1004da1f
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test esi, esi
jne 0x1004d9be
cmp esi, 0xea
je 0x1004d9be
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004d907
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.SystemComponent
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
test eax, 0xffff0000
jne 0x1004cf42
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004cf4e
push 0xf
push str.SystemComponent
call fcn.10001950
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 4
push eax
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
test eax, eax
mov eax, ebx
cmovne esi, ecx
add edx, 0xfffffff0
mov dword [ebp - 0x18], esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004cfa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
jne 0x1004cfba
cmp esi, 1
je 0x1004d8fe
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x4c], ebx
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push ecx
mov esi, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.DisplayName
mov byte [ebp - 4], 4
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d0e4
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d0f0
push 0xb
push str.DisplayName
call fcn.10001950
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.1004da90
mov ecx, dword [eax]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 5
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d159
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d14d
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d14d
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d145
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x4c], eax
jmp 0x1004d159
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10001950
mov edx, dword [ebp - 0x5c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d178
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x7c], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.Publisher
mov byte [ebp - 4], 6
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d1b4
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d1c0
push 9
push str.Publisher
call fcn.10001950
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x60]
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x48]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d231
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d222
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d222
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d21a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x48], eax
jmp 0x1004d22e
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10001950
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d250
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x80], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.DisplayVersion
mov byte [ebp - 4], 8
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d28c
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d298
push 0xe
push str.DisplayVersion
call fcn.10001950
push dword [ebp + 0x10]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x44]
add esi, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d306
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d2f7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d2f7
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d2ef
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x44], eax
jmp 0x1004d303
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x44]
call fcn.10001950
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d325
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x84], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.InstallDate
mov byte [ebp - 4], 0xa
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d364
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d370
push 0xb
push str.InstallDate
call fcn.10001950
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x40]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d3de
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d3cf
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d3cf
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d3c7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x40], eax
jmp 0x1004d3db
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10001950
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d3fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.EstimatedSize
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
test eax, 0xffff0000
jne 0x1004d43b
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d447
push 0xd
push str.EstimatedSize
call fcn.10001950
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x10], 4
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x58], 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
test eax, eax
cmovne esi, ecx
add edx, 0xfffffff0
mov dword [ebp - 0x18], esi
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d4a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea eax, [ebp - 0x3c]
push 0x100a8a70
push eax
call fcn.100094c0
add esp, 8
mov esi, esp
mov dword [ebp - 0x88], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.UninstallString
mov byte [ebp - 4], 0xd
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d4f2
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d4fe
push 0xf
push str.UninstallString
call fcn.10001950
push dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d56c
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d55d
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d55d
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d555
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x1004d569
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.10001950
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d58b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x8c], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.InstallLocation
mov byte [ebp - 4], 0xf
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d5ca
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d5d6
push 0xf
push str.InstallLocation
call fcn.10001950
push dword [ebp + 0x10]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x34]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d644
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d635
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d635
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d62d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x34], eax
jmp 0x1004d641
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10001950
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x70]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x90], esi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1004da15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.DisplayIcon
mov byte [ebp - 4], 0x11
mov ecx, esi
test eax, 0xffff0000
jne 0x1004d6a2
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1004d6ae
push 0xb
push str.DisplayIcon
call fcn.10001950
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1004da90
mov ecx, dword [eax]
mov esi, dword [ebp - 0x30]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x12
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x1004d719
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1004d70d
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004d70d
push edx
call fcn.100016d0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1004d705
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x1004d719
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10001950
mov edx, dword [ebp - 0x74]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
call fcn.100118c0
add esp, 4
mov esi, eax
call fcn.10001d50
test eax, eax
je 0x1004da15
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x13
test esi, esi
je 0x1004d793
test esi, 0xffff0000
jne 0x1004d77d
movzx eax, si
lea ecx, [ebp - 0x18]
push eax
call fcn.10001f10
jmp 0x1004d79f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d782
sub ecx, edx
sar ecx, 1
jmp 0x1004d795
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.10001950
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x14
push esi
push str._s_s_s
push eax
call fcn.10008470
mov ebx, dword [ebp - 0x4c]
add esp, 0x14
cmp dword [ebx - 0xc], 0
je 0x1004d7f1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x1004d7e4
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.1004caa0
mov eax, dword [ebp - 0x14]
add dword [eax + 4], 0x24
jmp 0x1004d7f1
lea edx, [ebp - 0x4c]
push edx
push eax
call fcn.1004c810
mov ebx, dword [ebp - 0x4c]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004d80d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d82e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d848
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d862
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d87c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d896
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d8b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d8ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d8e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004d8fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, 0xffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x54]
lea edx, [edi - 0x10]
mov dword [ebp - 0x50], 0x208
cmp dword [edx + 4], 0
mov esi, dword [edx]
je 0x1004d95d
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1004d93d
cmp dword [edi - 8], 0
jl 0x1004da1f
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x1004d95d
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004d950
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1004d981
push 0x104
lea ecx, [ebp - 0x24]
call fcn.10001860
mov edi, dword [ebp - 0x24]
cmp dword [edi - 8], 0x104
jl 0x1004da1f
xor eax, eax
mov dword [edi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [edi + 0x208], ax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push edi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x1004ced4
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004d9e2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004da01
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 esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
int3