Function at 0x1057b23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10d0620]
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 0x1057b76
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push ecx
call fcn.01091af5
mov esi, eax
cmp esi, edi
je 0x1057b94
push esi
push 0x39d0138
jmp 0x1057d22
mov eax, dword [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1057b9d
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 [0x10d0318]
push edi
push dword [ebp - 0x210]
push ebx
call esi
test eax, eax
je 0x1057c63
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 0x1057c63
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 [0x10d0318]
push edi
push dword [ebp - 0x210]
push ebx
call esi
mov esi, eax
cmp esi, 2
jne 0x1057c49
cmp dword [ebp + 0x10], edi
je 0x1057c4d
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 0x1057c63
push esi
push 0x3bb0138
jmp 0x1057c53
cmp esi, edi
je 0x1057c63
push esi
push 0x3bd0138
push dword [ebp - 0x210]
call fcn.0108c595
jmp 0x1057d55
cmp dword [ebp - 0x214], edi
je 0x1057d05
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 0x1057d05
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 0x1057ce5
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108f903
test eax, eax
je 0x1057cf9
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 0x1057cb1
jmp 0x1057d05
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x21c]
call fcn.01091af5
mov esi, eax
cmp esi, edi
je 0x1057d29
push esi
push 0x3dd0138
call fcn.0108c55a
jmp 0x1057d55
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x1057d41
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 0x1057d69
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x214], edi
je 0x1057d7d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.01091f0e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x18