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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x5c], 0
push edi
mov dword [ebp - 0x30], ebx
call fcn.00448d90
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00425650
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4489e3
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x448838
cmp eax, 2
je 0x448838
cmp eax, 6
jne 0x4489e3
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4489a5
shr edi, 1
xor ecx, ecx
mov edx, 2
mov byte [ebp - 0x60], 1
lea esi, [edi + 1]
mov eax, esi
mov dword [ebp - 0x6c], esi
mul edx
mov dword [ebp - 0x68], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044996b
mov ebx, eax
add esp, 4
mov dword [ebp - 0x64], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ebx
push 0
push 0
push ecx
push dword [eax + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp edi, esi
jb 0x4488b4
push 0
push 0x130
push str...FoundationincludePoco_Buffer.h
push str.index____used
call fcn.00420350
add esp, 0x10
xor eax, eax
mov word [ebx + edi*2], ax
lea eax, [ebp + 0xc]
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov byte [ebp - 0x4c], 1
xor esi, esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
test edi, edi
je 0x4488fa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044996b
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.00425810
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
add esp, 8
mov ecx, edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push eax
mov byte [edi], 0
call fcn.00404010
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x44895a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00420790
push esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00449974
push ebx
call fcn.00449974
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 8
jb 0x448990
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0041bfb0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4489ce
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0041bfb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00448c00
push 0
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00419640
push 0x4ab9d4
lea eax, [ebp - 0x98]
push eax
call fcn.0044bc24
int3