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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f70c
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x10067068]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
mov dword [esp + 0x148], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x10036881
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], ax
mov byte [esp + 0x118], 1
mov ecx, dword [esp + 0x2c]
inc ecx
cmp ecx, edi
ja 0x10036706
or eax, 0xffffffff
lea esi, [esp + 0x4c]
call fcn.1000d050
jmp 0x10036714
push edi
mov eax, ecx
lea edi, [esp + 0x50]
call fcn.10016e20
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x118], 2
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x38]
call fcn.10028df0
jmp 0x10036740
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
inc ecx
cmp dword [esp + 0x60], 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jae 0x10036760
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x50]
push ecx
push 0
lea edx, [esp + 0x40]
push edx
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x100367fe
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
push ecx
or eax, 0xffffffff
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], 7
call fcn.1000c030
lea ecx, [esp + 0x68]
lea ebx, [esp + 0x14]
mov byte [esp + 0x118], 3
call fcn.10028aa0
mov byte [esp + 0x118], 2
cmp dword [esp + 0x7c], 8
jb 0x100367dd
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
inc edi
jmp 0x10036740
cmp esi, 0x103
jne 0x10036924
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp esi, edi
je 0x10036831
cmp dword [esi + 0x14], 8
jb 0x10036820
mov eax, dword [esi]
jmp 0x10036822
mov eax, esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add esi, 0x1c
cmp esi, edi
jne 0x10036816
mov byte [esp + 0x118], 1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1003684b
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x118], 0
cmp dword [esp + 0x60], 8
jb 0x10036868
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], dx
xor edi, edi
lea edx, [esp + 0x84]
push str.item
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x44]
mov ecx, eax
add esp, 8
cmp esi, dword [ecx + 0x48]
jne 0x100369a5
mov dword [esp + 0x118], 0xffffffff
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x100368fc
mov edi, dword [esp + 0x18]
mov esi, ebx
cmp ebx, edi
je 0x100368f2
cmp dword [esi + 0x14], 8
jb 0x100368d8
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x100368c6
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x118], 1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1003693e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x118], 0
cmp dword [esp + 0x60], 8
jb 0x1003695b
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x118], 0xffffffff
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], cx
test ebx, ebx
je 0x1003699a
mov edi, dword [esp + 0x18]
mov eax, ebx
call fcn.10012640
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x100368fe
mov ebx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x90]
push 0x1005995c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x10]
add esp, 0xc
inc edi
cmp dword [esi + 0x14], 8
jb 0x100369ca
mov ecx, dword [esi]
jmp 0x100369cc
mov ecx, esi
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
lea ecx, [esp + 0x94]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x100369fc
mov edx, dword [esp + 0x10]
add esi, 0x1c
cmp esi, dword [edx + 0x48]
jne 0x100369a1
jmp 0x100368a9
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10036a5a
mov edi, dword [esp + 0x18]
mov esi, eax
cmp eax, edi
je 0x10036a50
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x10036a36
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x18]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x10036a20
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
jmp 0x100368fe