Function at 0x100417c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077f84
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov esi, dword [ebp + 8]
push 0x20019
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.1005c8c0
mov dword [esp + 0x510], 0
cmp dword [esp + 0x58], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10041ce4
push esi
lea ecx, [esp + 0xe0]
mov dword [esp + 0xe0], 0
call fcn.1005cd10
mov byte [esp + 0x510], 1
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x10041ce4
test eax, eax
js 0x10041cdd
push 0x1007d7c8
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10041c6f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0
call fcn.1005c530
push 0x20019
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.1005c8c0
cmp dword [esp + 0x1c], 0
jne 0x10041904
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10041c25
jmp 0x10041c07
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x2f0], 0
call fcn.1005cd10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
mov byte [esp + 0x538], 4
push 0
push dword [esp + 0x48]
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x1004199b
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x34]
push eax
push ecx
push ecx
push ecx
push dword [esp + 0x318]
mov dword [esp + 0x48], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004198a
cmp dword [esp + 0x18], eax
jne 0x1004199b
push 0
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1004bcb0
cmp word [esp + 0xe4], 0x2e
jne 0x10041a17
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x518], 5
call fcn.1005cb10
cmp dword [esp + 0x38], 0
je 0x100419fe
lea eax, [esp + 0x28]
push eax
call fcn.10042980
test al, al
jne 0x100419fe
push 0
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1004bcb0
cmp dword [esp + 0x3c], 8
jb 0x10041bf1
push dword [esp + 0x28]
call esi
add esp, 4
jmp 0x10041bf1
push str.DefaultIcon
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xa4], 0
call fcn.1005c530
push 0x20019
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.1005c8c0
cmp dword [esp + 0x4c], 0
je 0x10041acf
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x54]
mov byte [esp + 0x518], 8
call fcn.1005cb10
cmp dword [esp + 0x38], 0
je 0x10041abf
lea ecx, [esp + 0x28]
call fcn.100488e0
test al, al
jne 0x10041abf
push 0
lea eax, [esp + 0xa0]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1004bcb0
cmp dword [esp + 0x3c], 8
jb 0x10041acf
push dword [esp + 0x28]
call esi
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10041ae2
push eax
call ebx
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10041af5
push eax
call edi
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x510], 4
call fcn.10007a50
push str.CLSID
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xa4], 0
call fcn.1005c530
push 0x20019
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.1005c8c0
cmp dword [esp + 0x40], 0
je 0x10041bbf
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x48]
mov byte [esp + 0x518], 0xb
call fcn.1005cb10
cmp dword [esp + 0x38], 0
je 0x10041baf
lea eax, [esp + 0x28]
push eax
call fcn.10042b20
test al, al
jne 0x10041baf
push 0
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1004bcb0
cmp dword [esp + 0x3c], 8
jb 0x10041bbf
push dword [esp + 0x28]
call esi
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10041bd2
push eax
call ebx
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10041be5
push eax
call edi
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x9c]
call fcn.10007a50
mov eax, dword [esp + 0x2ec]
test eax, eax
je 0x10041bff
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10041c12
push eax
call ebx
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10041c25
push eax
call edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x510], 1
cmp dword [esp + 0x98], 8
jb 0x10041c43
push dword [esp + 0x84]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], 8
mov word [esp + 0x84], ax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 7
jb 0x10041c6f
push dword [esp + 0x68]
call esi
add esp, 4
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
dec eax
mov dword [esp + 0xe0], eax
test ecx, ecx
je 0x10041cce
test eax, eax
js 0x10041cce
lea edx, [esp + 0xd4]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0xf8]
push edx
push eax
push ecx
mov dword [esp + 0x38], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0xdc]
test eax, eax
mov eax, dword [esp + 0xe0]
je 0x10041880
xor edx, edx
mov word [esp + 0xe4], dx
jmp 0x10041880
test ecx, ecx
je 0x10041ce4
push ecx
call edi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10041cf7
push eax
call ebx
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10041d02
push eax
call edi
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4