Function at 0x1055d13
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x84]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10051e0
push 0x80000002
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1055da8
jle 0x1055d67
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x6c], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x105609e
test byte [eax + 0x1c], 1
je 0x105609e
cmp byte [eax + 0x19], 3
jb 0x105609e
push dword [ebp - 0x6c]
push 0x1004a78
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x105609e
push ebx
push ebx
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x84]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x94], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x1055e28
jle 0x1055de7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x6c], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1056092
test byte [eax + 0x1c], 1
je 0x1056092
cmp byte [eax + 0x19], 3
jb 0x1056092
push dword [ebp - 0x6c]
push 0x1004a78
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1056092
mov eax, dword [0x111024c]
push esi
push edi
mov edi, 0x111024c
mov esi, 0x1004a78
cmp eax, edi
je 0x1055e5a
test byte [eax + 0x1c], 1
je 0x1055e5a
cmp byte [eax + 0x19], 4
jb 0x1055e5a
push dword [ebp - 0x74]
push esi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x74], ebx
jbe 0x1056090
lea ecx, [ebp - 0x64]
call fcn.01054b90
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x68], ebx
je 0x1055e8e
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x80]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x68], eax
cmp eax, ebx
je 0x1056073
mov ecx, dword [ebp - 0x80]
inc ecx
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push ebx
lea ecx, [ebp - 0x8c]
push ecx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x78], 4
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1055f1b
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 2
jb 0x105605a
push ebx
push dword [ebp - 0x70]
push esi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
jmp 0x105605a
cmp dword [ebp - 0x7c], 4
jne 0x1056031
cmp dword [ebp - 0x78], 4
jne 0x1056031
cmp dword [ebp - 0x88], 1
je 0x1055f72
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 4
jb 0x105605a
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push esi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
jmp 0x105605a
push ebx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
call fcn.01055b15
test al, al
jne 0x1055fd3
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 2
jb 0x105605a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1055fb7
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [ebp - 0x68]
mov eax, dword [0x111024c]
push esi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x105605a
mov ecx, dword [ebp - 0x90]
push ebx
push 1
lea eax, [ebp - 0x64]
push eax
call fcn.01055729
test al, al
jne 0x105600e
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 2
jb 0x105605a
push esi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x105605a
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 4
jb 0x105605a
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push esi
push 0x1f
jmp 0x1055f62
mov eax, dword [0x111024c]
cmp eax, edi
je 0x105605a
test byte [eax + 0x1c], 1
je 0x105605a
cmp byte [eax + 0x19], 3
jb 0x105605a
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
lea ecx, [ebp - 0x64]
call fcn.01054bcf
inc dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x74]
jb 0x1055e66
jmp 0x1056082
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x6c], 0x8007000e
call fcn.01054bcf
cmp dword [ebp - 0x68], ebx
je 0x1056090
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 4