Function at 0x49e1f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x553948]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov edx, 1
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x11c], eax
mov ecx, 3
mov eax, 6
mov dword [ebp - 0xa0], str.FILES_ALLOW_ANY
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov word [ebp - 0x94], 1
mov dword [ebp - 0x90], str.FILES_ALLOW_READONLY
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], ebx
mov word [ebp - 0x84], dx
mov dword [ebp - 0x80], str.FILES_ALLOW_DIR_ANY
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x74], dx
mov dword [ebp - 0x70], str.NAMEDPIPES_ALLOW_ANY
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
mov word [ebp - 0x64], dx
mov dword [ebp - 0x60], str.PROCESS_ALL_EXEC
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 2
mov word [ebp - 0x54], dx
mov dword [ebp - 0x50], str.EVENTS_ALLOW_ANY
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x48], 4
mov word [ebp - 0x44], bx
mov dword [ebp - 0x40], str.REG_ALLOW_ANY
mov dword [ebp - 0x3c], 0x14
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x34], bx
mov dword [ebp - 0x30], str.MUTANT_ALLOW_ANY
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x28], 5
mov word [ebp - 0x24], pe_nt_image_headers32
mov dword [ebp - 0x20], str.SECTION_ALLOW_ANY
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x120], ebx
lea edi, [ebp - 0xa0]
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x114], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49e337
sub eax, dword [ebp - 0x114]
mov ecx, esi
sar eax, 1
push eax
push edx
mov edx, dword [esi + 0x10]
push edx
push ebx
call fcn.00407490
test eax, eax
je 0x49e439
mov eax, dword [ebp - 0x120]
inc eax
add edi, 0x10
mov dword [ebp - 0x120], eax
cmp eax, 9
jb 0x49e32a
call fcn.0040ee70
test eax, eax
jg 0x49e419
call fcn.0040ee70
test eax, eax
jg 0x49e3fe
push ebx
push 0x772
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1d4]
call fcn.0045c530
mov ecx, dword [ebp - 0x11c]
mov edx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x118], 2
cmp dword [ecx + 0x14], edx
jb 0x49e3c4
mov ecx, dword [ecx]
cmp dword [esi + 0x14], edx
jb 0x49e3cb
mov esi, dword [esi]
push ecx
push 0x5300bc
push esi
add eax, 8
push str.Custom_policy_syntax_error:
push eax
call fcn.00449da0
add esp, 8
push eax
call fcn.0045c5c0
add esp, 8
push eax
call fcn.00449da0
add esp, 8
push eax
call fcn.0045c5c0
add esp, 8
test byte [ebp - 0x118], 2
mov dword [ebp - 4], 0xffffffff
je 0x49e419
lea ecx, [ebp - 0x1d4]
call fcn.0045cab0
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.00401316
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x11c]
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0xc8], ebx
mov word [ebp - 0xd8], ax
call fcn.00406a40
mov dword [ebp - 4], ebx
cmp byte [edi + 0xc], bl
je 0x49e50b
cmp dword [esi + 0x14], 8
jb 0x49e481
mov esi, dword [esi]
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x49e50b
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.0041c219
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49e505
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004e41d0
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x49e4ce
mov eax, dword [eax]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x49e4fc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49e4e0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0xd8]
call fcn.004063e0
push edi
call fcn.00418a67
add esp, 4
mov edi, dword [ebp - 0x114]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [ebp - 0xd8]
mov word [ebp - 0xbc], cx
push edx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], ebx
call fcn.00406a40
mov byte [ebp - 4], 1
cmp byte [edi + 0xd], bl
je 0x49e5b8
lea eax, [ebp - 0xf4]
push eax
call fcn.0042ebc0
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xf4]
push edx
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 2
call fcn.00463bd0
add esp, 0x10
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.00406360
mov esi, 8
cmp dword [ebp - 0xfc], esi
jb 0x49e59b
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00406fa9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0xe0], esi
jb 0x49e5bd
mov edx, dword [ebp - 0xf4]
push edx
call fcn.00406fa9
add esp, 4
jmp 0x49e5bd
mov esi, 8
call fcn.0040ee70
test eax, eax
jg 0x49e65b
call fcn.0040ee70
test eax, eax
jg 0x49e640
push ebx
push 0x769
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1d4]
call fcn.0045c530
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 4], 4
mov dword [ebp - 0x118], 1
cmp dword [ebp - 0xa8], esi
jae 0x49e60b
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [edi]
push 0x5300bc
push ecx
add eax, 8
push str.Adding_custom_policy:
push eax
call fcn.00449da0
add esp, 8
push eax
call fcn.0045c5c0
add esp, 8
push eax
call fcn.00449da0
add esp, 8
push eax
call fcn.0045c5c0
add esp, 8
test byte [ebp - 0x118], 1
mov dword [ebp - 4], 1
je 0x49e65b
lea ecx, [ebp - 0x1d4]
call fcn.0045cab0
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xa8], esi
jae 0x49e66f
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x124]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
push eax
call edx
cmp dword [ebp - 0xa8], esi
jb 0x49e69e
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], cx
cmp dword [ebp - 0xc4], esi
jb 0x49e419
mov edx, dword [ebp - 0xd8]
push edx
call fcn.00406fa9
add esp, 4
jmp 0x49e419