Function at 0x10046080
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007df4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
mov eax, dword [0x10098a04]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x43c], 0
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push 0
push 0x212
mov byte [esp + 0x444], 1
call fcn.10001450
add esp, 8
test eax, eax
je 0x10046107
push 0x212
push eax
lea ecx, [esp + 0x20]
call fcn.10004800
push 0
push 0x213
call fcn.10001450
add esp, 8
test eax, eax
je 0x1004612d
push 0x213
push eax
lea ecx, [esp + 0x24]
call fcn.10004800
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100462e0
mov byte [esp + 0x30], al
mov ecx, 0xff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
push edx
mov dword [esp + 0x40], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100461a0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x100462e0
lea ebp, [esp + 0x30]
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100461c0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x100462d7
mov bl, 2
jmp 0x100461e0
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x43c], bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0x2bf
mov byte [esp + 0x444], 3
call fcn.10001450
add esp, 8
test eax, eax
je 0x1004623e
push 0x2bf
push eax
lea ecx, [esp + 0x2c]
call fcn.10004800
mov esi, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.10004e20
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 1
push 0x10081bf2
push edi
call fcn.100450c0
push 0
push ebp
call fcn.1006a2c9
add esp, 8
inc eax
mov ebp, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x43c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10046295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100462b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100462c0
sub eax, edx
mov dword [esp + 0x10], eax
jne 0x100461e0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
call fcn.10042590
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004632b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x434]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret