Function at 0x57bc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
call fcn.00579a10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x57be03
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.0057cae0
add esp, 4
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 2
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57bcf6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00449bc0
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x57bd2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0x64528c
lea ecx, [ebp - 0x28]
call fcn.0044ed80
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57bd42
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044ed80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x2001f
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
push SysStringLen
call fcn.0057b750
test eax, eax
je 0x57bdb9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
push 0
push 0x2001f
push 0
push 0
push eax
push SysStringLen
call fcn.0057a7e0
test eax, eax
je 0x57bdb9
lea ecx, [ebp - 0x28]
call fcn.00449860
mov edi, dword [ebp - 0x44]
xor ebx, ebx
jmp 0x57be57
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x30], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x57bdf0
cmp dword [ebp - 0x2c], 4
je 0x57bdf0
lea esi, [eax + 0xd]
test edi, edi
je 0x57bdf9
push edi
call ebx
xor edi, edi
lea ecx, [ebp - 0x28]
call fcn.00449860
jmp 0x57be50
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x57be22
xor ebx, ebx
jmp 0x57be57
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 4
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], 4
push eax
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
mov esi, eax
call ebx
xor ebx, ebx
test esi, esi
sete bl
test edi, edi
je 0x57be62
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret