Function at 0x4b4bd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5273e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x579630]
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 dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
lea esi, [ebp - 0xc0]
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xc0], str.FILES_ALLOW_ANY
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xb4], 1
mov dword [ebp - 0xb0], str.FILES_ALLOW_READONLY
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xa4], 1
mov dword [ebp - 0xa0], str.FILES_ALLOW_DIR_ANY
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x98], 0
mov word [ebp - 0x94], 1
mov dword [ebp - 0x90], str.NAMEDPIPES_ALLOW_ANY
mov dword [ebp - 0x8c], 4
mov dword [ebp - 0x88], 1
mov word [ebp - 0x84], 1
mov dword [ebp - 0x80], str.PROCESS_ALL_EXEC
mov dword [ebp - 0x7c], 6
mov dword [ebp - 0x78], 2
mov word [ebp - 0x74], 1
mov dword [ebp - 0x70], str.EVENTS_ALLOW_ANY
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x68], 4
mov word [ebp - 0x64], 0
mov dword [ebp - 0x60], str.REG_ALLOW_ANY
mov dword [ebp - 0x5c], 0xa
mov dword [ebp - 0x58], 3
mov word [ebp - 0x54], 0
mov dword [ebp - 0x50], str.MUTANT_ALLOW_ANY
mov dword [ebp - 0x4c], 0xe
mov dword [ebp - 0x48], 5
mov word [ebp - 0x44], 0x100
mov dword [ebp - 0x40], str.SECTION_ALLOW_READWRITE
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 6
mov word [ebp - 0x34], 0x100
mov dword [ebp - 0x30], str.SECTION_ALLOW_READONLY
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x28], 6
mov word [ebp - 0x24], 0x100
mov dword [ebp - 0x20], str.SECTION_ALLOW_ANY
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], 6
mov word [ebp - 0x14], 0x100
jmp 0x4b4d80
mov edx, dword [esi]
cmp word [edx], 0
jne 0x4b4d8c
xor ecx, ecx
jmp 0x4b4db0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x118], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4d97
sub ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x10c]
sar ecx, 1
push ecx
push edx
push dword [eax + 0x10]
mov ecx, eax
push 0
call fcn.004089f0
test eax, eax
je 0x4b4e82
mov eax, dword [ebp - 0x10c]
inc edi
add esi, 0x10
cmp edi, 0xb
jb 0x4b4d80
call fcn.00412c10
test eax, eax
jg 0x4b5174
call fcn.00412c10
test eax, eax
jg 0x4b4e5e
push 0
push 0x8ae
push str.policy_configurator.cpp
lea ecx, [ebp - 0xc0]
call fcn.0046e250
mov ecx, eax
mov dword [ebp - 0x110], 2
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], 4
jb 0x4b4e1d
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x14], 8
jb 0x4b4e2b
mov eax, dword [eax]
push ebx
push 0x54fd58
push eax
lea eax, [ecx + 8]
push str.Custom_policy_syntax_error:
push eax
call fcn.0045b4a0
add esp, 8
push eax
call fcn.0046e6c0
add esp, 8
push eax
call fcn.0045b4a0
add esp, 8
push eax
call fcn.0046e6c0
add esp, 8
test byte [ebp - 0x110], 2
mov dword [ebp - 4], 0xffffffff
je 0x4b5174
lea ecx, [ebp - 0xc0]
call fcn.0046e3c0
jmp 0x4b5174
xor eax, eax
mov dword [ebp - 0xdc], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
call fcn.00407d00
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], 0
je 0x4b4f78
cmp dword [ebx + 0x14], 8
jb 0x4b4ec9
mov eax, dword [ebx]
jmp 0x4b4ecb
mov eax, ebx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x4b4f78
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425c1e
mov edi, eax
add esp, 4
test edi, edi
je 0x4b4f78
mov ecx, dword [ebp - 0x10c]
add ecx, 2
add ecx, ecx
push ecx
push 0
push edi
call fcn.004f9050
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4b4f25
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10c]
add eax, 2
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x10c]
add ecx, 2
cmp eax, ecx
jae 0x4b4f6f
cmp word [edi], 0
jne 0x4b4f4e
xor ecx, ecx
jmp 0x4b4f62
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4f53
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xf0]
call fcn.00407750
push edi
call fcn.0041d0a7
add esp, 4
xor eax, eax
mov dword [ebp - 0xc4], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0xd8], ax
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xc8], 0
push eax
call fcn.00407d00
cmp byte [esi + 0xd], 0
mov byte [ebp - 4], 1
je 0x4b5063
lea eax, [ebp - 0x108]
push eax
call fcn.00431b10
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004335c0
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0xd8]
cmp eax, edi
je 0x4b5031
cmp dword [ebp - 0xc4], 8
jb 0x4b5008
push dword [ebp - 0xd8]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0xc4], 7
push edi
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00407e60
cmp dword [ebp - 0x11c], 8
jb 0x4b5048
push dword [ebp - 0x130]
call fcn.004085be
add esp, 4
cmp dword [ebp - 0xf4], 8
mov byte [ebp - 4], 1
jb 0x4b5063
push dword [ebp - 0x108]
call fcn.004085be
add esp, 4
call fcn.00412c10
test eax, eax
jg 0x4b5101
call fcn.00412c10
test eax, eax
jg 0x4b50e6
push 0
push 0x8a5
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1e0]
call fcn.0046e250
mov dword [ebp - 0x110], 1
lea ecx, [ebp - 0xd8]
cmp dword [ebp - 0xc4], 8
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0xd8]
add eax, 8
push ecx
push 0x54fd58
push dword [esi]
push str.Adding_custom_policy:
push eax
call fcn.0045b4a0
add esp, 8
push eax
call fcn.0046e6c0
add esp, 8
push eax
call fcn.0045b4a0
add esp, 8
push eax
call fcn.0046e6c0
add esp, 8
test byte [ebp - 0x110], 1
mov dword [ebp - 4], 1
je 0x4b5101
lea ecx, [ebp - 0x1e0]
call fcn.0046e3c0
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0xd8]
cmp dword [ebp - 0xc4], 8
cmovae eax, dword [ebp - 0xd8]
mov ecx, dword [ecx]
push eax
push dword [esi + 4]
mov edx, dword [ecx]
push dword [esi + 8]
call dword [edx + 0x60]
cmp dword [ebp - 0xc4], 8
jb 0x4b5140
push dword [ebp - 0xd8]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0xc4], 7
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
jb 0x4b5174
push dword [ebp - 0xf0]
call fcn.004085be
add esp, 4
mov al, 1
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.00401590
mov esp, ebp
pop ebp
ret 8