Function at 0x10011840
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x10021df0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1002b024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push 0x3fe
lea ecx, [ebp + 2]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], ebx
mov word [ebp], ax
call fcn.100144d0
add esp, 0xc
cmp dword [edi + 0x20], ebx
jne 0x100118aa
xor al, al
jmp 0x10011b9b
mov eax, dword [ebp + 0x40c]
lea esi, [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.1000b190
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x100118dd
push 0x10026b2c
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], 0xffffffff
call fcn.10014cdc
mov esi, eax
add eax, 0x24
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CCriticalSectionSync.0
call fcn.10006ae0
cmp dword [esi + 0x20], ebx
mov esi, vtable.CCriticalSectionSync.0
lea eax, [ebp - 0x20]
sete bl
mov dword [ebp - 0x20], esi
call fcn.10006af0
test bl, bl
jne 0x10011b38
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.10006ae0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
mov ebx, dword [ecx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
jmp 0x10011940
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 4]
test esi, esi
je 0x1001194e
cmp esi, eax
je 0x10011953
call fcn.1001346d
cmp ebx, edi
je 0x10011b22
test esi, esi
jne 0x100119b2
call fcn.1001346d
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x10011970
call fcn.1001346d
cmp dword [ebx + 0x44], 0
je 0x10011b0c
test esi, esi
jne 0x100119b6
call fcn.1001346d
cmp ebx, dword [esi + 0x18]
jne 0x1001198d
call fcn.1001346d
mov eax, dword [ebp - 0x2c]
call fcn.10006940
push eax
lea ecx, [ebp]
push 0x200
push ecx
call fcn.1001302e
add esp, 0xc
cmp dword [ebx + 0x24], 8
jb 0x100119ba
mov eax, dword [ebx + 0x10]
jmp 0x100119bd
mov eax, dword [esi]
jmp 0x10011966
mov esi, dword [esi]
jmp 0x10011983
lea eax, [ebx + 0x10]
push eax
lea edx, [ebp]
push 0x200
push edx
call fcn.10013205
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10011a09
push 0x10026b2c
lea edx, [ebp - 0x40]
or eax, 0xffffffff
push edx
mov dword [ebp - 0x40], eax
call fcn.10014cdc
mov eax, dword [ebx + 0x40]
mov esi, dword [eax]
mov edi, dword [ebx + 0x28]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x28]
test edi, edi
je 0x10011a28
cmp edi, eax
je 0x10011a2d
call fcn.1001346d
cmp esi, ebx
je 0x10011af7
test edi, edi
jne 0x10011a8e
call fcn.1001346d
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10011a4a
call fcn.1001346d
test edi, edi
jne 0x10011a92
call fcn.1001346d
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10011a5f
call fcn.1001346d
test edi, edi
jne 0x10011a96
call fcn.1001346d
cmp esi, dword [edi + 0x18]
jne 0x10011a72
call fcn.1001346d
cmp byte [esi + 0x28], 0
je 0x10011aaa
cmp dword [esi + 0x24], 8
jb 0x10011a9a
mov esi, dword [esi + 0x10]
mov edx, dword [ebp - 0x18]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10011ae1
mov eax, dword [edi]
jmp 0x10011a40
mov eax, dword [edi]
jmp 0x10011a55
mov edi, dword [edi]
jmp 0x10011a68
mov edx, dword [ebp - 0x18]
add esi, 0x10
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10011ae1
mov ecx, dword [esi + 0x40]
mov edx, 8
cmp dword [esi + 0x44], edx
jb 0x10011abc
mov eax, dword [esi + 0x30]
jmp 0x10011abf
lea eax, [esi + 0x30]
cmp dword [esi + 0x24], edx
jb 0x10011ac9
mov esi, dword [esi + 0x10]
jmp 0x10011acc
add esi, 0x10
mov edx, dword [ebp - 0x18]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [ebp - 0x34]
call fcn.1000d820
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
jmp 0x10011a17
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10011b0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
lea esi, [ebp - 0x20]
call fcn.1000d820
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
jmp 0x10011940
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.CCriticalSectionSync.0
call fcn.10006af0
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x40c]
mov ecx, dword [edi + 4]
push eax
call fcn.100081e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov bl, 1
mov dword [ebp - 0x28], vtable.CIntrusivePtr_class_CCacheProfile::CSectionMap_.0
test eax, eax
je 0x10011b8b
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
je 0x10011b8b
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10011b8b
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x10011b8b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10011b99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10012c7f
add ebp, 0x404
mov esp, ebp
pop ebp
ret 4