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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d40a8
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.005453a0
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.0050bd30
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 0x544ff3
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x544e48
cmp eax, 2
je 0x544e48
cmp eax, 6
jne 0x544ff3
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x544fb5
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.005021d8
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 0x544ec4
push 0
push 0x130
push str...FoundationincludePoco_Buffer.h
push str.index____used
call fcn.00510790
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 0x544f0a
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005021d8
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.0050bef0
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.0040edc0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x544f6a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040ee30
push esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00501fb5
push ebx
call fcn.00501fb5
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 8
jb 0x544fa0
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004bc930
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 0x544fde
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004bc930
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.00545210
push 0
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00503be0
push 0x6340e8
lea eax, [ebp - 0x98]
push eax
call fcn.005879e4
int3