Function at 0x100414c0
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], eax
mov dword [esp + 0x90], 0
call fcn.1005cd10
mov dword [esp + 0x2b0], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x1004178b
test eax, eax
js 0x10041784
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 0
call fcn.1005c530
mov edx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
test edx, edx
je 0x10041622
cmp byte [esp + 0x64], al
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x28]
cmovne eax, dword [esp + 0x14]
mov byte [esp + 0x28], al
lea eax, [esp + 0x4c]
test cl, 0x26
je 0x100415fe
cmp dword [esp + 0x60], 8
lea esi, [esp + 0x80]
cmovae eax, dword [esp + 0x4c]
push esi
lea esi, [esp + 0x24]
push esi
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x1004161e
cmp dword [esp + 0x60], 8
lea edi, [esp + 0x20]
cmovae eax, dword [esp + 0x4c]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
jne 0x10041636
test eax, eax
je 0x100416db
jmp 0x100416bd
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
push eax
push str.AppID
lea ecx, [esp + 0x28]
mov byte [esp + 0x2b8], 3
call fcn.1005cb10
cmp dword [esp + 0x40], 0
je 0x1004168e
lea eax, [esp + 0x30]
push eax
call fcn.100427e0
test al, al
jne 0x1004168e
push 0
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1004bcb0
cmp dword [esp + 0x44], 8
jb 0x1004169e
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x30], ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
test eax, eax
je 0x100416c8
push eax
call ebx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100416db
push eax
call edi
mov dword [esp + 0x20], 0
mov byte [esp + 0x2b0], 0
cmp dword [esp + 0x7c], 8
jb 0x100416f3
push dword [esp + 0x68]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 8
mov word [esp + 0x68], ax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 7
jb 0x10041716
push dword [esp + 0x4c]
call esi
add esp, 4
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
dec eax
mov dword [esp + 0x90], eax
test ecx, ecx
je 0x10041775
test eax, eax
js 0x10041775
lea edx, [esp + 0x84]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0xa8]
push edx
push eax
push ecx
mov dword [esp + 0x4c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x8c]
test eax, eax
mov eax, dword [esp + 0x90]
je 0x10041556
xor edx, edx
mov word [esp + 0x94], dx
jmp 0x10041556
test ecx, ecx
je 0x1004178b
push ecx
call edi
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4