Function at 0x10008de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e953
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x1001300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.10009b70
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10008ebd
push 0xc
call fcn.1000ce92
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x88], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [eax + 0x14], 0
mov dword [eax + 0x10], edi
jne 0x10008fe3
mov eax, dword [edi]
test eax, eax
je 0x10008e7f
push eax
call esi
neg eax
sbb eax, eax
add eax, 1
je 0x10008eaf
mov esi, dword [ebp - 0x44]
push edi
push 0x20119
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
add eax, 1
je 0x10008eb2
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x10008eb2
mov esi, dword [ebp - 0x44]
test eax, eax
je 0x10008fe6
mov edi, dword [ebp - 0x4c]
mov eax, dword [0x10013034]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x50]
push eax
call fcn.10009c60
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
jne 0x100098af
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov esi, dword [0x10013034]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x10009013
push 0x1000f620
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x90]
call fcn.10003440
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.10003390
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10008f52
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x10008f84
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push 0
push dword [ebp - 0x18]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x10008f84
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x10008fb1
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10008fb1
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
push eax
call fcn.1000cc77
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x90]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x100090e0
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x100090e0
mov eax, dword [ebp - 0x90]
jmp 0x100090d4
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x4c]
cmp dword [edi + 0x14], 1
jne 0x10009006
push 0x20219
push esi
push ecx
mov ecx, dword [edi + 0x10]
call fcn.10009c10
test eax, eax
jne 0x10008ebd
mov edx, 0x6e
mov dword [ebp - 0x20], edx
jmp 0x10009922
cmp eax, 1
jne 0x10009882
push 0x1000f620
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x80]
call fcn.10003440
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.10003390
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000905c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x1000908e
lea eax, [ebp - 0x2c]
push eax
push 0x20219
push 0
push dword [ebp - 0x18]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x1000908e
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x7c]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x100090b5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x100090b5
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
push eax
call fcn.1000cc77
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x80]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x100090e0
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x100090e0
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
push eax
call fcn.1000cc77
add esp, 4
test edi, edi
je 0x10009882
push 0x104
lea ecx, [ebp - 0x30]
call fcn.100020b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x64]
push ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x64], 0x208
push eax
push 0
push str.AdskProductCode
push dword [ebp - 0x2c]
call edi
mov esi, eax
cmp esi, 0xea
jne 0x10009155
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002030
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x64], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x64]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskProductCode
push dword [ebp - 0x2c]
call edi
mov esi, eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002030
test esi, esi
jne 0x10009835
mov eax, dword [0x10013034]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push 0x104
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.100020b0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x208
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.DisplayName
push dword [ebp - 0x2c]
call edi
mov esi, eax
cmp esi, 0xea
jne 0x100091e7
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10002030
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x68], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x2c]
call edi
mov esi, eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10002030
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x10009259
mov ebx, dword [ebp - 0x50]
cmp edi, ebx
je 0x10009259
cmp dword [edi - 0xc], 0
lea esi, [edi - 0xc]
jge 0x10009211
lea eax, [edi - 0xc]
cmp eax, 0x10013024
jne 0x1000921a
cmp dword [ebx - 0xc], 0
lea eax, [ebx - 0xc]
jge 0x1000922b
push ebx
push dword [ebx - 8]
lea ecx, [ebp - 0x1c]
call fcn.100021f0
mov edi, dword [ebp - 0x1c]
jmp 0x10009259
add edi, 0xfffffff4
cmp edi, 0x10013024
je 0x1000924d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000924a
push esi
call fcn.1000cc77
add esp, 4
lea eax, [ebx - 0xc]
mov edi, ebx
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x104
lea ecx, [ebp - 0x40]
call fcn.100020b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x6c], 0x208
push eax
push 0
push str.AdskPackageCode
push dword [ebp - 0x2c]
call esi
cmp eax, 0xea
jne 0x100092c1
push ecx
lea ecx, [ebp - 0x40]
call fcn.10002030
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x40]
add eax, 2
mov dword [ebp - 0x6c], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskPackageCode
push dword [ebp - 0x2c]
call esi
push ecx
lea ecx, [ebp - 0x40]
call fcn.10002030
push 0x104
lea ecx, [ebp - 0x3c]
call fcn.100020b0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x208
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskPackageName
push dword [ebp - 0x2c]
call esi
cmp eax, 0xea
jne 0x1000932c
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10002030
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x54], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x54]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskPackageName
push dword [ebp - 0x2c]
call esi
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10002030
push 0x104
lea ecx, [ebp - 0x48]
call fcn.100020b0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x208
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskProductDependencies
push dword [ebp - 0x2c]
call esi
cmp eax, 0xea
jne 0x10009397
push ecx
lea ecx, [ebp - 0x48]
call fcn.10002030
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x58], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x58]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskProductDependencies
push dword [ebp - 0x2c]
call esi
push ecx
lea ecx, [ebp - 0x48]
call fcn.10002030
push 0x104
lea ecx, [ebp - 0x38]
call fcn.100020b0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x208
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskGlobalProductCode
push dword [ebp - 0x2c]
call esi
cmp eax, 0xea
jne 0x10009402
push ecx
lea ecx, [ebp - 0x38]
call fcn.10002030
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x5c], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.AdskGlobalProductCode
push dword [ebp - 0x2c]
call esi
push ecx
lea ecx, [ebp - 0x38]
call fcn.10002030
push 0x104
lea ecx, [ebp - 0x34]
call fcn.100020b0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x208
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.DisplayIcon
push dword [ebp - 0x2c]
call esi
cmp eax, 0xea
jne 0x1000946d
push ecx
lea ecx, [ebp - 0x34]
call fcn.10002030
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x60], eax
shr eax, 1
push eax
call fcn.100020b0
lea ecx, [ebp - 0x60]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.DisplayIcon
push dword [ebp - 0x2c]
call esi
push ecx
lea ecx, [ebp - 0x34]
call fcn.10002030
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.AdskLanguagePack
push dword [ebp - 0x2c]
call esi
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x9c]
mov esi, dword [eax + 8]
push esi
push dword [eax + 4]
call fcn.10008a70
mov ebx, dword [ebp - 0x48]
add esp, 8
cmp dword [eax], esi
jne 0x10009766
push 0x54
call fcn.1000ce92
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0xc
lea ecx, [edi - 0xc]
cmp dword [ecx], 0
mov esi, esp
mov dword [ebp - 0x18], esp
jl 0x100094ee
push ecx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10009505
mov eax, dword [0x10013034]
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.100021f0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x30]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
mov dword [ebp - 0x10], ecx
jl 0x1000952c
push eax
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10009544
mov eax, dword [0x10013034]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.100021f0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x3c]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x10], ecx
jl 0x1000956b
push eax
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10009583
mov eax, dword [0x10013034]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.100021f0
mov byte [ebp - 4], 0xf
mov esi, dword [ebp - 0x40]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], ecx
jl 0x100095a4
push eax
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x100095bc
mov eax, dword [0x10013034]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.100021f0
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.100037c0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x98], 1
mov esi, dword [ebp - 0x38]
mov dword [ecx], eax
sete cl
mov byte [eax + 0x18], cl
lea eax, [esi - 0xc]
cmp dword [eax], 0
jl 0x100095f8
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10009614
mov eax, dword [0x10013034]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.100021f0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x14
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x1000962b
xor eax, eax
jmp 0x10009632
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.100021f0
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0xb
cmp eax, 0x10013024
je 0x10009661
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10009661
push esi
call fcn.1000cc77
add esp, 4
mov esi, dword [ebp - 0x34]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], ecx
jl 0x1000967e
push eax
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10009696
mov eax, dword [0x10013034]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.100021f0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.10004830
cmp dword [ebx - 8], 0
je 0x10009769
cmp dword [ebx - 0xc], 0
lea eax, [ebx - 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], ecx
jl 0x100096c4
push eax
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x100096dc
mov eax, dword [0x10013034]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push ebx
push eax
call fcn.100021f0
lea eax, [ebp - 0x78]
push eax
call fcn.10009970
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov byte [ebp - 4], 0x11
add eax, 0x44
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push ecx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.100017d0
mov ecx, dword [ebp - 0x10]
add esp, 8
mov byte [ebp - 0x88], 0
push dword [ebp - 0x88]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ecx]
call 0x100058a0
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x10009769
push dword [ebp + 8]
mov edx, dword [ebp - 0x74]
push ecx
call fcn.100017d0
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, dword [ebp - 0x78]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.10001770
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
jmp 0x10009769
mov esi, dword [ebp - 0x34]
lea eax, [esi - 0xc]
cmp eax, 0x10013024
je 0x1000978a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000978a
push esi
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x100097af
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100097af
push esi
call fcn.1000cc77
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x10013024
je 0x100097d0
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100097d0
push ebx
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x100097f7
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100097f7
push esi
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x10009818
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10009818
push esi
call fcn.1000cc77
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x10013024
je 0x10009835
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x10009835
push edi
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x10009856
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10009856
push esi
call fcn.1000cc77
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10009871
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x4c]
cmp dword [eax], 0
je 0x10008ed2
jmp 0x100098fb
lea eax, [esi - 0xc]
cmp eax, 0x10013024
je 0x1000989f
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1000989f
push esi
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100098fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100098fb
mov esi, dword [edi + 0x10]
test esi, esi
je 0x100098fe
mov eax, dword [esi]
test eax, eax
je 0x100098cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100098cf
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov esi, dword [edi + 0x10]
test esi, esi
je 0x100098f4
mov eax, dword [esi]
test eax, eax
je 0x100098e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
push 0xc
push esi
call fcn.1000cc85
add esp, 8
mov dword [edi + 0x10], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x10009922
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x1000991f
push esi
call fcn.1000cc77
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
lea ecx, [eax - 0xc]
cmp ecx, 0x10013024
je 0x1000995a
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10009943
push esi
call fcn.1000cc77
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4