Function at 0x1057370
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10cd598]
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 0x10573c3
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push ecx
call fcn.0108e981
mov esi, eax
cmp esi, edi
je 0x10573e1
push esi
push 0x39d0138
jmp 0x105756f
mov eax, dword [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10573ea
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 [0x10cd290]
push edi
push dword [ebp - 0x210]
push ebx
call esi
test eax, eax
je 0x10574b0
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 0x10574b0
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 [0x10cd290]
push edi
push dword [ebp - 0x210]
push ebx
call esi
mov esi, eax
cmp esi, 2
jne 0x1057496
cmp dword [ebp + 0x10], edi
je 0x105749a
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 0x10574b0
push esi
push 0x3bb0138
jmp 0x10574a0
cmp esi, edi
je 0x10574b0
push esi
push 0x3bd0138
push dword [ebp - 0x210]
call fcn.01089421
jmp 0x10575a2
cmp dword [ebp - 0x214], edi
je 0x1057552
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 0x1057552
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 0x1057532
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c78f
test eax, eax
je 0x1057546
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 0x10574fe
jmp 0x1057552
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x21c]
call fcn.0108e981
mov esi, eax
cmp esi, edi
je 0x1057576
push esi
push 0x3dd0138
call fcn.010893e6
jmp 0x10575a2
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x105758e
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 0x10575b6
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x214], edi
je 0x10575ca
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0108ed8e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x18