Function at 0x1057a61
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x228], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
cmp eax, edi
je 0x1057ab4
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push ecx
call fcn.01091ad0
mov esi, eax
cmp esi, edi
je 0x1057ad2
push esi
push 0x39d0138
jmp 0x1057c60
mov eax, dword [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1057adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push dword [0x10d0338]
push edi
push dword [ebp - 0x210]
push ebx
call esi
test eax, eax
je 0x1057ba1
push 0x5c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, edi
je 0x1057ba1
xor ecx, ecx
mov word [eax], cx
sub eax, dword [ebp - 0x210]
shr eax, 1
inc eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push dword [0x10d0338]
push edi
push dword [ebp - 0x210]
push ebx
call esi
mov esi, eax
cmp esi, 2
jne 0x1057b87
cmp dword [ebp + 0x10], edi
je 0x1057b8b
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
cmp esi, edi
je 0x1057ba1
push esi
push 0x3bb0138
jmp 0x1057b91
cmp esi, edi
je 0x1057ba1
push esi
push 0x3bd0138
push dword [ebp - 0x210]
call fcn.0108c53e
jmp 0x1057c93
cmp dword [ebp - 0x214], edi
je 0x1057c43
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov dword [ebp - 0x21c], eax
cmp cx, word [eax]
je 0x1057c43
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], edi
mov ebx, 0x104
push edi
jmp 0x1057c23
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108f8de
test eax, eax
je 0x1057c37
inc dword [ebp - 0x218]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x214]
mov dword [ebp - 0x220], ebx
call esi
test eax, eax
je 0x1057bef
jmp 0x1057c43
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x21c]
call fcn.01091ad0
mov esi, eax
cmp esi, edi
je 0x1057c67
push esi
push 0x3dd0138
call fcn.0108c503
jmp 0x1057c93
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x1057c7f
mov ecx, dword [ebp - 0x214]
mov dword [eax], ecx
mov dword [ebp - 0x214], edi
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ebp - 0x210], edi
cmp dword [ebp - 0x210], edi
je 0x1057ca7
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x214], edi
je 0x1057cbb
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.01091ee9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0x18