Function at 0x10056c7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x1017484]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa44]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001914
push 0x80000000
mov dword [ebp - 0xa44], ebx
call edi
cmp eax, ebx
jne 0x1005b67
mov dword [ebp - 0xa54], ebx
push esi
push 0x105
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0xa54]
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x1005b4c
cmp word [ebp - 0x41c], 0x2e
jne 0x1005b4a
mov esi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0x41a]
push eax
push 0x10018fc
push dword [0x101702c]
mov dword [ebp - 0xa5c], ebx
mov dword [ebp - 0xa4c], ebx
call esi
test eax, eax
jne 0x1005b12
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0x41a]
push eax
push 0x10018e4
push dword [0x101702c]
call esi
test eax, eax
jne 0x1005b4a
lea eax, [ebp - 0xa5c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0xa44]
call edi
test eax, eax
jne 0x1005b4a
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa48]
push eax
push ebx
push ebx
push dword [ebp - 0xa5c]
mov dword [ebp - 0xa74], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005afe
cmp dword [ebp - 0xa48], 1
jne 0x1005afe
lea eax, [ebp - 0xa68]
push eax
mov esi, 0x20019
push esi
push ebx
lea eax, [ebp - 0xa40]
push eax
push dword [ebp - 0xa44]
mov dword [ebp - 0xa68], ebx
call edi
test eax, eax
jne 0x1005afe
lea eax, [ebp - 0xa50]
push eax
push esi
push ebx
push 0x10018d8
push dword [ebp - 0xa68]
mov dword [ebp - 0xa50], ebx
call edi
cmp eax, ebx
jne 0x1005af2
mov dword [ebp - 0xa60], ebx
push 0x105
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xa60]
push dword [ebp - 0xa50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x1005ad8
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
lea eax, [ebp - 0x834]
push 0x10018cc
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10058b1
lea eax, [ebp - 0x834]
push 0x10018c0
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005ad6
lea eax, [ebp - 0xa58]
push eax
mov esi, 0x20019
push esi
push ebx
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xa50]
mov dword [ebp - 0xa58], ebx
call edi
test eax, eax
jne 0x1005ad6
lea eax, [ebp - 0xa64]
push eax
push esi
push ebx
push 0x10018b0
push dword [ebp - 0xa58]
mov dword [ebp - 0xa64], ebx
call edi
test eax, eax
jne 0x1005aca
lea eax, [ebp - 0xa70]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa48]
push eax
push ebx
push ebx
push dword [ebp - 0xa64]
mov dword [ebp - 0xa70], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005ab8
inc eax
cmp dword [ebp - 0xa48], eax
je 0x100594b
cmp dword [ebp - 0xa48], 2
jne 0x1005ab8
cmp word [ebp - 0x210], 0x22
mov dword [ebp - 0xa6c], ebx
jne 0x1005967
lea esi, [ebp - 0x20e]
push 0x22
mov eax, esi
jmp 0x1005987
mov dword [ebp - 0xa6c], eax
lea esi, [ebp - 0x210]
mov eax, esi
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
jne 0x1005994
push ebx
mov eax, esi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10059f8
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x628]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp + eax - 0x628], bx
lea eax, [ebp - 0x628]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10059f8
inc eax
inc eax
je 0x10059f8
lea ecx, [ebp - 0xa84]
push ecx
push eax
push 0x1001894
push dword [0x101702c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x10059f8
mov dword [ebp - 0xa4c], 1
cmp dword [ebp - 0xa4c], ebx
je 0x1005ab8
cmp dword [ebp - 0xa6c], ebx
je 0x1005ab8
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1005ab8
inc esi
inc esi
je 0x1005ab8
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x20
push esi
call edi
cmp eax, ebx
pop ecx
pop ecx
jne 0x1005a4e
push ebx
push esi
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x1005ab8
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x628]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp + eax - 0x628], bx
lea eax, [ebp - 0x628]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1005a8b
inc eax
inc eax
jmp 0x1005a91
lea eax, [ebp - 0x628]
cmp eax, ebx
je 0x1005ab8
lea ecx, [ebp - 0xa84]
push ecx
push eax
push 0x1001894
push dword [0x101702c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1005ab8
mov dword [ebp - 0xa4c], ebx
push dword [ebp - 0xa64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0xa58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc dword [ebp - 0xa60]
cmp eax, ebx
je 0x1005859
push dword [ebp - 0xa50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa4c], ebx
je 0x1005b4a
push 3
lea eax, [ebp - 0x41a]
push eax
call sub.MIGISM.dll_IsmIsComponentSelected
test eax, eax
jne 0x1005b4a
push 1
push 3
lea eax, [ebp - 0x41a]
push eax
call sub.MIGISM.dll_IsmSelectComponent
test eax, eax
jne 0x1005b4a
push ebx
push 3
lea eax, [ebp - 0x41a]
push eax
push 2
push ebx
call sub.MIGISM.dll_IsmAddComponentAlias
xor eax, eax
inc dword [ebp - 0xa54]
cmp eax, ebx
je 0x1005712
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
inc eax
pop ebx
call fcn.01012bde
leave
ret