Function at 0x46fdd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd006
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x648], esi
mov edi, 7
xor eax, eax
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], esi
mov word [ebp - 0x644], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x654], esi
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x64c], esi
push 0xf003f
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
lea ecx, [ebp - 0x654]
mov byte [ebp - 4], 1
call fcn.00412570
test eax, eax
je 0x46fe9d
xor ecx, ecx
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
lea edx, [ebp - 0x644]
mov word [ebx], cx
push edx
mov ecx, ebx
call fcn.00405d20
mov eax, dword [ebp - 0x654]
cmp eax, esi
je 0x46fe84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x630], 8
jb 0x47011a
mov eax, dword [ebp - 0x644]
push eax
jmp 0x470112
call fcn.0044fdd0
push 0x206
xor ecx, ecx
lea edx, [ebp - 0x41e]
push esi
mov word [ebp - 0x420], cx
push edx
test al, al
je 0x46ff5c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov edi, 0x104
push str.Default
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x648], edi
call fcn.00434210
xor edx, edx
test eax, eax
jne 0x4700d6
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46ff35
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x644]
call fcn.00405660
jmp 0x4700d4
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov edi, 0x104
push str.ProfilesDirectory
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x648], edi
call fcn.00434210
xor edx, edx
test eax, eax
jne 0x4700d6
push 0x206
lea eax, [ebp - 0x626]
push esi
push eax
mov word [ebp - 0x628], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0x4dfe4c
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x648], edi
call fcn.00434210
test eax, eax
je 0x470019
lea ecx, [ebp - 0x644]
xor eax, eax
push ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov ecx, ebx
mov word [ebx], ax
call fcn.00405d20
mov eax, dword [ebp - 0x654]
cmp eax, esi
je 0x470009
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x644]
call fcn.004a9f30
jmp 0x47011a
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push esi
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x470055
mov eax, dword [0x4c7780]
mov dword [edi], eax
lea eax, [ebp - 0x628]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x470070
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, si
jne 0x470086
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
jmp 0x4700b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4700b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x644]
call fcn.00405660
xor esi, esi
xor edx, edx
lea eax, [ebp - 0x644]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
push eax
mov ecx, ebx
mov word [ebx], dx
call fcn.00405d20
mov eax, dword [ebp - 0x654]
cmp eax, esi
je 0x470102
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x630], 8
jb 0x47011a
mov ecx, dword [ebp - 0x644]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret