Function at 0x47f820
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e11b4
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5246a8]
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], 0x503720
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 0x47f880
mov ecx, dword [esi + 0x10]
sub eax, edi
sar eax, 1
push eax
push edx
push ecx
push 0
mov ecx, esi
call fcn.004071f0
test eax, eax
je 0x47f95c
mov eax, dword [ebp - 0x8c]
add dword [ebp - 0x84], 0x10
add eax, 0x10
mov dword [ebp - 0x8c], eax
cmp eax, 0x90
jb 0x47f872
call fcn.0040e770
test eax, eax
jg 0x47f93a
push 0
push 0x723
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.00450580
mov ecx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x88], 2
cmp dword [ebx + 0x14], ecx
jb 0x47f900
mov ebx, dword [ebx]
cmp dword [esi + 0x14], ecx
jb 0x47f907
mov esi, dword [esi]
push ebx
push 0x503704
push esi
add eax, 8
push str.Custom_policy_syntax_error:
push eax
call fcn.00441cc0
add esp, 8
push eax
call fcn.00450610
add esp, 8
push eax
call fcn.00441cc0
add esp, 8
push eax
call fcn.00450610
add esp, 8
test byte [ebp - 0x88], 2
mov dword [ebp - 4], 0xffffffff
je 0x47f955
lea ecx, [ebp - 0x140]
call fcn.00450920
mov al, 1
jmp 0x47fb8c
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.004066a0
mov esi, dword [ebp - 0x84]
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], 0
mov edi, 8
je 0x47fa2d
cmp dword [ebx + 0x14], edi
jb 0x47f9a1
mov eax, dword [ebx]
jmp 0x47f9a3
mov eax, ebx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x47fa2d
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 0x47fa22
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004b7180
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x47f9ed
mov ebx, dword [ebx]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x47fa19
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fa00
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00406040
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.004066a0
cmp byte [esi + 0xd], 0
mov ebx, 1
mov byte [ebp - 4], bl
je 0x47fab1
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.00405fc0
cmp dword [ebp - 0x6c], edi
jb 0x47fa9d
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406d09
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], edi
jb 0x47fab1
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406d09
add esp, 4
call fcn.0040e770
test eax, eax
jg 0x47fb1b
push 0
push 0x71b
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.00450580
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x18], edi
jae 0x47fae6
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [esi]
push 0x503704
push ecx
add eax, 8
push str.Adding_custom_policy:
push eax
call fcn.00441cc0
add esp, 8
push eax
call fcn.00450610
add esp, 8
push eax
call fcn.00441cc0
add esp, 8
push eax
call fcn.00450610
add esp, 8
mov dword [ebp - 4], ebx
test byte [ebp - 0x88], bl
je 0x47fb31
lea ecx, [ebp - 0x140]
call fcn.00450920
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47fb3c
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 0x47fb65
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
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 0x47fb8a
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406d09
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