Function at 0x10011160
Capabilities:
Delete registry value
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10052a41
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x1006f184]
xor eax, esp
mov dword [esp + 0x6a8], eax
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, esp
push eax
lea eax, [esp + 0x6c0]
mov dword fs:[0], eax
xor edi, edi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
push 0x1006fd9c
mov esi, eax
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esi, dword [0x100746a0]
push 0x1006fd9c
add esi, dword [0x10074698]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x206
lea ecx, [esp + 0x2aa]
xor eax, eax
push edi
push ecx
xor ebx, ebx
mov word [esp + 0x2b0], ax
call sub.MSVCR100.dll_memset
push str.Action
lea edx, [esp + 0x2b4]
push 0x104
push edx
call fcn.10045720
add esp, 0x18
mov eax, edi
cdq
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x2c], ecx
mov eax, ebx
lea ecx, [esp + 0x2c]
sbb eax, edx
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCR100.dll__localtime64]
mov cl, byte [eax + 0x10]
mov edx, 0x76c
add dx, word [eax + 0x14]
inc cl
mov word [esp + 0x44], dx
mov dl, byte [eax + 0xc]
xor eax, eax
push 0x4e
mov byte [esp + 0x4a], cl
push eax
lea ecx, [esp + 0x5a]
push ecx
mov byte [esp + 0x53], dl
mov word [esp + 0x5c], ax
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x50]
push edx
push 0x100621a8
lea eax, [esp + 0x64]
push 0x27
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
xor eax, eax
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2d4]
push ecx
push SysReAllocString
call fcn.100503d0
add esp, 0x38
test eax, eax
je 0x100112ed
mov edx, dword [esp + 0x14]
push edx
call fcn.10011640
test eax, eax
je 0x100112d7
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2a8]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x100112df
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x14], ebx
jne 0x10011521
add edi, 0x15180
cmp edi, 0x278d00
jl 0x10011215
mov ecx, eax
mov dword [ecx + 0x10], ebx
cmp dword [esp + 0x28], ebx
jne 0x10011521
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4b6]
push eax
mov word [esp + 0x4b8], dx
call sub.MSVCR100.dll_memset
push str.Action
lea ecx, [esp + 0x4bc]
push 0x104
push ecx
call fcn.10045720
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x4b8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011521
xor edi, edi
push 0xc
mov dword [esp + 0x34], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, edi
je 0x1001156b
mov dword [esi], esi
mov dword [esp + 0x2c], esi
mov dword [esi + 4], esi
push 0x206
lea edx, [esp + 0xa2]
xor ecx, ecx
push edi
mov dword [esp + 0x6d0], edi
push edx
mov word [esp + 0xa8], cx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x28]
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xb0]
push ecx
push ebx
push edx
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001149d
cmp word [esp + 0x9c], 0x23
jne 0x10011465
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.10010350
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x6cc], 1
mov edx, dword [esi + 4]
push edx
push esi
lea ecx, [esp + 0x38]
call fcn.10012680
mov ecx, 0x3ffffffe
sub ecx, edi
cmp ecx, 1
jb 0x10011560
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov byte [esp + 0x6c8], 0
mov edx, dword [esp + 0x14]
inc edi
push edx
mov dword [esp + 0x34], edi
mov dword [ecx], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0xb0]
push edx
mov word [esp + 0xb4], ax
mov eax, dword [esp + 0x34]
inc ebx
push ebx
push eax
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100113f3
mov edi, dword [esi]
cmp edi, esi
je 0x100114c1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea esp, [esp]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call ebx
mov edi, dword [edi]
cmp edi, esi
jne 0x100114b0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x6c8], 2
mov edi, dword [esi]
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esp + 0x30], 0
cmp edi, esi
je 0x1001150c
lea ebx, [ebx]
mov eax, dword [edi + 8]
mov ebx, dword [edi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 8
mov edi, ebx
cmp ebx, esi
jne 0x100114f0
push esi
mov dword [esp + 0x6cc], 0xffffffff
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], 0
xor eax, eax
mov ecx, dword [esp + 0x6c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a8]
xor ecx, esp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x100671cc
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3