Function at 0x10007af0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10042ac9
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x1005a690]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
push 0x100000
push 0x10049622
push str.__i_Invit
lea ecx, [esp + 0xa8]
mov dword [esp + 0x344], 0
call fcn.10031cd0
mov dword [esp + 0x338], 1
xor eax, eax
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], eax
mov word [esp + 0xa4], ax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], al
lea eax, [esp + 0x6c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [esp + 0x338], 5
cmp dword [esp + 0x6c], 0
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10007fe6
lea eax, [esp + 0xbc]
push eax
push str.ProfilesDirectory
lea ecx, [esp + 0x74]
call fcn.1001dbe0
push 0x5c
push 1
lea ecx, [esp + 0xc4]
call fcn.1000a8e0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0
push dword [esp + 0x98]
mov dword [esp + 0x98], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [esp + 0x68]
test ecx, ecx
je 0x10007fe6
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xe0]
mov dword [esp + 0xe0], 0
call fcn.1001d8b0
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x118]
mov dword [esp + 0x118], 0
call fcn.1001ddf0
mov byte [esp + 0x338], 7
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
lea esp, [esp]
test ecx, ecx
je 0x10007f9a
test eax, eax
js 0x10007f93
cmp dword [esp + 0x8c], 8
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x88], 0
mov word [eax], cx
cmp word [esp + 0x11c], cx
jne 0x10007d1f
xor eax, eax
jmp 0x10007d3f
lea eax, [esp + 0x11c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007d30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0xac]
call fcn.1000aac0
cmp dword [esp + 0xb8], 8
lea eax, [esp + 0xa4]
cmovae eax, dword [esp + 0xa4]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call fcn.1001da70
push ecx
push eax
lea ecx, [esp + 0x98]
call fcn.1001db00
mov byte [esp + 0x338], 8
cmp dword [esp + 0x4c], 8
jb 0x10007db9
push dword [esp + 0x38]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x30], 8
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
jb 0x10007de0
push dword [esp + 0x1c]
call edi
add esp, 4
xor eax, eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x78]
push eax
push str.ProfileImagePath
lea ecx, [esp + 0x98]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
call fcn.1001dbe0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x78]
cmovae ecx, dword [esp + 0x78]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x78]
cmovae ecx, dword [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.1000d220
add esp, 8
test al, al
jne 0x10007ee4
sub esp, 0x18
mov ecx, esp
xor eax, eax
mov dword [esp + 0x80], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x10048468
mov word [ecx], ax
call fcn.1000aac0
sub esp, 0x18
mov ecx, esp
mov byte [esp + 0x368], 9
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0xf4]
push eax
call fcn.1000a9a0
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x80]
mov byte [esp + 0x368], 8
call fcn.10025f90
add esp, 0x30
mov ecx, dword [esp + 0x10]
push eax
mov byte [esp + 0x33c], 0xa
call fcn.1000a280
cmp dword [esp + 0x64], 8
jb 0x10007ee4
push dword [esp + 0x50]
call edi
add esp, 4
mov byte [esp + 0x338], 7
mov eax, dword [esp + 0x94]
test eax, eax
je 0x10007f09
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x90]
test eax, eax
je 0x10007f22
push eax
call ebx
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
dec eax
mov dword [esp + 0x118], eax
test ecx, ecx
je 0x10007f84
test eax, eax
js 0x10007f84
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x130]
push edx
push eax
push ecx
mov dword [esp + 0x88], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x114]
test eax, eax
mov eax, dword [esp + 0x118]
je 0x10007ce0
xor edx, edx
mov word [esp + 0x11c], dx
jmp 0x10007ce0
test ecx, ecx
je 0x10007f9a
push ecx
call ebx
cmp dword [esp + 0x108], 8
jb 0x10007fb0
push dword [esp + 0xf4]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0xec], 8
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], ax
jb 0x10007fe6
push dword [esp + 0xd8]
call edi
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10007ffd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10008010
push eax
call ebx
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x8c], 8
jb 0x10008023
push dword [esp + 0x78]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0xb8], 8
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
jb 0x10008056
push dword [esp + 0xa4]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0xd0], 8
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x1000808c
push dword [esp + 0xbc]
call edi
add esp, 4
mov dword [esp + 0x338], 0xffffffff
mov esi, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
test esi, esi
je 0x100080e8
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x100080e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x100080e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.1003e328
mov esp, ebp
pop ebp
ret 4