Function at 0x4a0400
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bf15
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x556620]
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 - 0xa0]
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xa0], str.FILES_ALLOW_ANY
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov word [ebp - 0x94], 1
mov dword [ebp - 0x90], str.FILES_ALLOW_READONLY
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], 0
mov word [ebp - 0x84], 1
mov dword [ebp - 0x80], str.FILES_ALLOW_DIR_ANY
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x78], 0
mov word [ebp - 0x74], 1
mov dword [ebp - 0x70], str.NAMEDPIPES_ALLOW_ANY
mov dword [ebp - 0x6c], 6
mov dword [ebp - 0x68], 1
mov word [ebp - 0x64], 1
mov dword [ebp - 0x60], str.PROCESS_ALL_EXEC
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 2
mov word [ebp - 0x54], 1
mov dword [ebp - 0x50], str.EVENTS_ALLOW_ANY
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x48], 4
mov word [ebp - 0x44], 0
mov dword [ebp - 0x40], str.REG_ALLOW_ANY
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], 3
mov word [ebp - 0x34], 0
mov dword [ebp - 0x30], str.MUTANT_ALLOW_ANY
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 6
mov word [ebp - 0x24], 0x100
mov dword [ebp - 0x20], str.SECTION_ALLOW_ANY
mov dword [ebp - 0x1c], 0x11
mov dword [ebp - 0x18], 7
mov word [ebp - 0x14], 0x100
lea ecx, [ecx]
mov edx, dword [esi]
cmp word [edx], 0
jne 0x4a056c
xor ecx, ecx
jmp 0x4a0590
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x118], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0577
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.00408670
test eax, eax
je 0x4a0662
mov eax, dword [ebp - 0x10c]
inc edi
add esi, 0x10
cmp edi, 9
jb 0x4a0560
call fcn.00410920
test eax, eax
jg 0x4a0954
call fcn.00410920
test eax, eax
jg 0x4a063e
push 0
push 0x80c
push str.policy_configurator.cpp
lea ecx, [ebp - 0xc0]
call fcn.00461ff0
mov ecx, eax
mov dword [ebp - 0x110], 2
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], 4
jb 0x4a05fd
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x14], 8
jb 0x4a060b
mov eax, dword [eax]
push ebx
push 0x530b64
push eax
lea eax, [ecx + 8]
push str.Custom_policy_syntax_error:
push eax
call fcn.004506c0
add esp, 8
push eax
call fcn.00462450
add esp, 8
push eax
call fcn.004506c0
add esp, 8
push eax
call fcn.00462450
add esp, 8
test byte [ebp - 0x110], 2
mov dword [ebp - 4], 0xffffffff
je 0x4a0954
lea ecx, [ebp - 0xc0]
call fcn.00462150
jmp 0x4a0954
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.00407980
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], 0
je 0x4a0758
cmp dword [ebx + 0x14], 8
jb 0x4a06a9
mov eax, dword [ebx]
jmp 0x4a06ab
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 0x4a0758
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe68
mov edi, eax
add esp, 4
test edi, edi
je 0x4a0758
mov ecx, dword [ebp - 0x10c]
add ecx, 2
add ecx, ecx
push ecx
push 0
push edi
call fcn.004dead0
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4a0705
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 0x4a074f
cmp word [edi], 0
jne 0x4a072e
xor ecx, ecx
jmp 0x4a0742
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0733
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xf0]
call fcn.004073d0
push edi
call fcn.00419db5
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.00407980
cmp byte [esi + 0xd], 0
mov byte [ebp - 4], 1
je 0x4a0843
lea eax, [ebp - 0x108]
push eax
call fcn.0042e1d0
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.0042fc80
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0xd8]
cmp eax, edi
je 0x4a0811
cmp dword [ebp - 0xc4], 8
jb 0x4a07e8
push dword [ebp - 0xd8]
call fcn.0040823e
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.00407ae0
cmp dword [ebp - 0x11c], 8
jb 0x4a0828
push dword [ebp - 0x130]
call fcn.0040823e
add esp, 4
cmp dword [ebp - 0xf4], 8
mov byte [ebp - 4], 1
jb 0x4a0843
push dword [ebp - 0x108]
call fcn.0040823e
add esp, 4
call fcn.00410920
test eax, eax
jg 0x4a08e1
call fcn.00410920
test eax, eax
jg 0x4a08c6
push 0
push 0x803
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1e0]
call fcn.00461ff0
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 0x530b64
push dword [esi]
push str.Adding_custom_policy:
push eax
call fcn.004506c0
add esp, 8
push eax
call fcn.00462450
add esp, 8
push eax
call fcn.004506c0
add esp, 8
push eax
call fcn.00462450
add esp, 8
test byte [ebp - 0x110], 1
mov dword [ebp - 4], 1
je 0x4a08e1
lea ecx, [ebp - 0x1e0]
call fcn.00462150
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 0x4a0920
push dword [ebp - 0xd8]
call fcn.0040823e
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 0x4a0954
push dword [ebp - 0xf0]
call fcn.0040823e
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.00401580
mov esp, ebp
pop ebp
ret 8