Function at 0x47f9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1244
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5256a8]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0x504718
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fa10
mov ecx, dword [esi + 0x10]
sub eax, edi
sar eax, 1
push eax
push edx
push ecx
push 0
mov ecx, esi
call fcn.004071e0
test eax, eax
je 0x47faec
mov eax, dword [ebp - 0x8c]
add dword [ebp - 0x84], 0x10
add eax, 0x10
mov dword [ebp - 0x8c], eax
cmp eax, 0x90
jb 0x47fa02
call fcn.0040e770
test eax, eax
jg 0x47faca
push 0
push 0x723
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.00450680
mov ecx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x88], 2
cmp dword [ebx + 0x14], ecx
jb 0x47fa90
mov ebx, dword [ebx]
cmp dword [esi + 0x14], ecx
jb 0x47fa97
mov esi, dword [esi]
push ebx
push 0x5046fc
push esi
add eax, 8
push str.Custom_policy_syntax_error:
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
test byte [ebp - 0x88], 2
mov dword [ebp - 4], 0xffffffff
je 0x47fae5
lea ecx, [ebp - 0x140]
call fcn.00450a20
mov al, 1
jmp 0x47fd1c
xor edx, edx
push 0xffffffffffffffff
push edx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00406690
mov esi, dword [ebp - 0x84]
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], 0
mov edi, 8
je 0x47fbbd
cmp dword [ebx + 0x14], edi
jb 0x47fb31
mov eax, dword [ebx]
jmp 0x47fb33
mov eax, ebx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x47fbbd
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416893
mov edi, eax
add esp, 4
test edi, edi
je 0x47fbb2
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004b7120
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x47fb7d
mov ebx, dword [ebx]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x47fba9
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fb90
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00406030
push edi
call fcn.004168eb
add esp, 4
mov esi, dword [ebp - 0x84]
mov edi, 8
xor ecx, ecx
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0x48]
mov word [ebp - 0x2c], cx
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00406690
cmp byte [esi + 0xd], 0
mov ebx, 1
mov byte [ebp - 4], bl
je 0x47fc41
lea eax, [ebp - 0x64]
push eax
call fcn.00423ac0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.004209e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00405fb0
cmp dword [ebp - 0x6c], edi
jb 0x47fc2d
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406cf9
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], edi
jb 0x47fc41
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406cf9
add esp, 4
call fcn.0040e770
test eax, eax
jg 0x47fcab
push 0
push 0x71b
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.00450680
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x18], edi
jae 0x47fc76
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [esi]
push 0x5046fc
push ecx
add eax, 8
push str.Adding_custom_policy:
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
mov dword [ebp - 4], ebx
test byte [ebp - 0x88], bl
je 0x47fcc1
lea ecx, [ebp - 0x140]
call fcn.00450a20
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47fccc
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x90]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
push eax
call edx
cmp dword [ebp - 0x18], edi
jb 0x47fcf5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x47fd1a
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406cf9
add esp, 4
mov al, bl
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.00401306
mov esp, ebp
pop ebp
ret 8