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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007f2cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x10098a04]
push ebx
push ebp
push esi
mov dword [esp + 0x28], 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 + 0x444], 0
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0
push 0x215
mov byte [esp + 0x44c], 1
call fcn.10001450
add esp, 8
test eax, eax
je 0x10057af7
push 0x215
push eax
lea ecx, [esp + 0x20]
call fcn.10004800
push 0
push 0x216
call fcn.10001450
add esp, 8
test eax, eax
je 0x10057b1d
push 0x216
push eax
lea ecx, [esp + 0x28]
call fcn.10004800
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10057cd7
mov byte [esp + 0x38], al
mov ecx, 0xff
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push esi
push edx
mov dword [esp + 0x40], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x38]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10057b90
sub eax, edx
mov dword [esp + 0x14], eax
je 0x10057cd7
lea ebx, [esp + 0x38]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10057bb0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x10057cd7
jmp 0x10057bd0
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x444], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push 0xcc
mov byte [esp + 0x44c], 3
call fcn.10001450
add esp, 8
test eax, eax
je 0x10057c2f
push 0xcc
push eax
lea ecx, [esp + 0x2c]
call fcn.10004800
mov edi, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.10004e20
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov ebp, esp
push esi
call fcn.10002a40
mov ecx, dword [esp + 0x38]
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.10057310
push 0
push ebx
call fcn.1006a2c9
add esp, 8
inc eax
mov ebx, eax
mov byte [esp + 0x444], 2
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10057c93
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x444], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057cb5
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10057cc0
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x10057bd0
mov esi, dword [esp + 0x20]
lea eax, [esi - 0x10]
mov byte [esp + 0x444], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10057cf9
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 + 0x444], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10057d22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x43c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret