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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0
push 0x1018ed8c
mov dword [ebp - 0x494], esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.10051fd0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x484]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push connect
call edi
test eax, eax
jne 0x1002e7d1
xor ebx, ebx
mov dword [ebp - 0x48c], 0x100
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x488], ebx
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1002e7c5
lea eax, [ebp - 0x208]
push str.S_1_5_21_
push eax
call fcn.1011bbd2
add esp, 8
test eax, eax
je 0x1002e780
lea eax, [ebp - 0x490]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x484]
call edi
test eax, eax
jne 0x1002e780
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0x100
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push str.ProfileImagePath
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002e774
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002e410
sub eax, edx
lea ecx, [ebp - 0x420]
sar eax, 1
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.10051fd0
push dword [ebp - 0x498]
mov edi, dword [ebp - 0x40c]
lea ecx, [ebp - 0x420]
mov esi, dword [ebp - 0x420]
cmp edi, 8
mov ebx, dword [ebp - 0x410]
mov edx, ebx
push 2
cmovae ecx, esi
push 0x1018efb4
push ecx
call fcn.1005b7a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002e734
lea edx, [eax + 1]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
cmp ebx, edx
jb 0x1002e7e4
sub ebx, edx
lea eax, [ebp - 0x420]
or ecx, 0xffffffff
cmp ebx, 0xffffffff
cmovb ecx, ebx
cmp edi, 8
push ecx
cmovae eax, esi
lea ecx, [ebp - 0x468]
lea eax, [eax + edx*2]
push eax
call fcn.10051fd0
mov ecx, dword [ebp - 0x458]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x1002e7ee
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push 1
cmovae eax, dword [ebp - 0x468]
push 0x1018e170
push ecx
push eax
push ecx
push dword [ebp - 0x498]
lea ecx, [ebp - 0x480]
call fcn.1005dba0
cmp dword [ebp - 0x40c], 8
lea eax, [ebp - 0x420]
push dword [ebp - 0x410]
cmovae eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x480]
push eax
call fcn.100520e0
mov esi, eax
mov dword [ebp - 0x450], 0
push 0x18
lea eax, [ebp - 0x450]
mov dword [ebp - 0x440], 0
push esi
push eax
mov dword [ebp - 0x43c], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
lea ecx, [ebp - 0x450]
mov word [esi], ax
push 1
push 0x1018eeb0
call fcn.100520e0
mov esi, eax
mov dword [ebp - 0x438], 0
push 0x18
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], 0
push esi
push eax
mov dword [ebp - 0x424], 0
call fcn.1011b630
mov ecx, dword [ebp - 0x494]
xor eax, eax
add esp, 0xc
mov word [esi], ax
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x438]
mov dword [esi + 0x14], 7
cmp dword [ebp - 0x424], 8
push dword [ebp - 0x428]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.100520e0
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x1002e62e
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e624
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e7e9
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [ebp - 0x43c]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x1002e68b
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e681
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e7e9
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [ebp - 0x46c]
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
cmp edx, 8
jb 0x1002e6e8
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e6de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e7e9
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [ebp - 0x454]
cmp edx, 8
jb 0x1002e728
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e71e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e7e9
push edx
push ecx
call fcn.1011a823
add esp, 8
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x40c]
cmp edi, 8
jb 0x1002e768
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x1002e75e
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e7e9
push edi
push esi
call fcn.1011a823
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0x488]
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x48c], 0x100
push eax
lea eax, [ebp - 0x208]
inc ebx
push eax
push ebx
push dword [ebp - 0x484]
mov dword [ebp - 0x488], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1002e372
mov esi, dword [ebp - 0x494]
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10058770
call fcn.10125fc5
call fcn.10021260
int3