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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4894a8
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.00453620
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.00483bd0
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 0x453273
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x4530c8
cmp eax, 2
je 0x4530c8
cmp eax, 6
jne 0x453273
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x453235
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.00454697
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 0x453144
push 0
push 0x130
push str...FoundationincludePoco_Buffer.h
push str.index____used
call fcn.0042e650
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 0x45318a
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00454697
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.00483d90
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.00406c60
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x4531ea
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00401a60
push esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.004546a0
push ebx
call fcn.004546a0
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 8
jb 0x453220
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0042a803
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 0x45325e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0042a803
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.00453490
push 0
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0042f8c0
push 0x4bba74
lea eax, [ebp - 0x98]
push eax
call fcn.00456134
int3