Function at 0x10007220
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1002891b
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x1003230c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003230c]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov edi, dword [esp + 0x688]
mov eax, dword [esp + 0x68c]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
cmp dword [edi], ebp
jne 0x100073aa
xor eax, eax
mov word [esp + 0x44], ax
push 0x38
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
call fcn.10005d40
push str.IsWow64Process
mov dword [esp + 0x684], ebp
push str.kernel32
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
je 0x100072ee
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x2c], ebp
je 0x100072fe
or dword [0x10033578], 0x100
mov eax, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x10007311
lea eax, [esp + 0x44]
mov edx, dword [0x10033578]
push edi
push edx
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test ebp, ebp
je 0x10007373
push str.RegOpenKeyFailure
call fcn.10001180
add esp, 4
mov dword [esp + 0x680], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x10007357
mov eax, dword [esp + 0x44]
push eax
call fcn.10011720
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
jmp 0x10007613
mov dword [esp + 0x680], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x10007391
mov edx, dword [esp + 0x44]
push edx
call fcn.10011720
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
xor ebp, ebp
mov ecx, dword [0x100346ec]
cmp ecx, ebp
jne 0x100073f5
mov ecx, dword [edi]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x100346f0
push 0x100346ec
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebp, eax
test ebp, ebp
jne 0x10007613
mov eax, dword [0x100346f0]
test eax, eax
je 0x1000760e
mov ecx, dword [0x100346ec]
inc eax
mov dword [0x100346f0], eax
jmp 0x100073fa
mov eax, dword [0x100346f0]
cmp eax, ebp
je 0x1000760e
cmp ecx, ebp
je 0x1000760e
cmp dword [0x100346f4], ecx
jae 0x1000760e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010aec
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x1000743f
mov ebp, 0x54f
jmp 0x10007613
mov eax, dword [0x100346f0]
lea ecx, [eax + eax]
push ecx
push ebp
push ebx
call fcn.10017160
mov edx, dword [0x100346f0]
mov eax, dword [0x100346f4]
mov ecx, dword [edi]
add esp, 0xc
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebp, eax
test ebp, ebp
jne 0x10007613
mov esi, dword [0x100346f0]
add esi, 0x39
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010aec
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
jne 0x100074ab
mov ebp, 0x54f
jmp 0x10007613
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10017160
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push str._s_s
push esi
push edi
call fcn.10011853
mov edx, dword [0x10033578]
add esp, 0x20
lea ecx, [esp + 0x18]
push ecx
push edx
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test ebp, ebp
jne 0x10007613
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x30]
push ecx
push ebp
push str.ProfileImagePath
push edx
mov dword [esp + 0x40], 2
call esi
mov ebp, eax
test ebp, ebp
jne 0x10007613
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10007613
inc eax
push eax
mov dword [esp + 0x18], eax
call fcn.10010aec
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x10007552
mov ebp, 0x54f
jmp 0x10007613
mov eax, dword [esp + 0x14]
push eax
push 0
push edi
call fcn.10017160
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x30]
push edx
push 0
push str.ProfileImagePath
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x10007613
push eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
test esi, esi
jne 0x100075a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x10007613
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010aec
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100075ca
mov ebp, 0x54f
jmp 0x10007613
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.10017160
mov edx, dword [esp + 0x30]
add esp, 0xc
push esi
mov esi, dword [esp + 0x20]
push esi
push edx
call edi
test eax, eax
jne 0x100075f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x10007613
push 0x5c
push esi
call fcn.10012434
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10007613
mov ebp, 0x54f
jmp 0x10007613
mov ebp, 0x103
xor eax, eax
push 0x616
push eax
lea ecx, [esp + 0x66]
push ecx
mov word [esp + 0x68], ax
call fcn.10017160
mov edx, dword [esp + 0x2c]
add esp, 0xc
test edx, edx
je 0x1000763a
add edx, 2
jmp 0x1000763f
mov edx, str.NULL
mov ecx, ebx
test ebx, ebx
jne 0x1000764a
mov ecx, str.NULL
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x10007659
mov eax, str.NULL
push edx
push ecx
push eax
push ebp
push str.EnumUserProfileInformation_returning__d_UserPath:__s__sid:__s__userName:__s
lea edx, [esp + 0x70]
push 0x30c
push edx
call fcn.10011853
lea eax, [esp + 0x78]
push eax
call fcn.10001180
add esp, 0x20
test ebp, ebp
jne 0x100076ef
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007687
mov esi, dword [esp + 0x3c]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.10005d40
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100076a7
mov esi, dword [esp + 0x34]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.10005d40
mov eax, dword [esp + 0x20]
add eax, 2
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100076d0
sub ecx, esi
mov esi, dword [esp + 0x38]
sar ecx, 1
push ecx
call fcn.10005d40
inc dword [0x100346f4]
test ebx, ebx
je 0x100076fc
push ebx
call fcn.10011d08
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000770d
push eax
call fcn.10011d08
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000771e
push eax
call fcn.10011d08
add esp, 4
test edi, edi
je 0x1000772b
push edi
call fcn.10011d08
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000773a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.1001172b
add esp, 0x670
ret