Function at 0x49c170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507390
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x54e938]
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], 0x100
mov dword [ebp - 0x20], str.SECTION_ALLOW_ANY
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0x100
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 0x49c2b7
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.004073b0
test eax, eax
je 0x49c3b9
mov eax, dword [ebp - 0x120]
inc eax
add edi, 0x10
mov dword [ebp - 0x120], eax
cmp eax, 9
jb 0x49c2aa
call fcn.0040ecf0
test eax, eax
jg 0x49c399
call fcn.0040ecf0
test eax, eax
jg 0x49c37e
push ebx
push 0x772
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1d4]
call fcn.00458750
mov ecx, dword [ebp - 0x11c]
mov edx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x118], 2
cmp dword [ecx + 0x14], edx
jb 0x49c344
mov ecx, dword [ecx]
cmp dword [esi + 0x14], edx
jb 0x49c34b
mov esi, dword [esi]
push ecx
push 0x52bc9c
push esi
add eax, 8
push str.Custom_policy_syntax_error:
push eax
call fcn.004461c0
add esp, 8
push eax
call fcn.004587e0
add esp, 8
push eax
call fcn.004461c0
add esp, 8
push eax
call fcn.004587e0
add esp, 8
test byte [ebp - 0x118], 2
mov dword [ebp - 4], 0xffffffff
je 0x49c399
lea ecx, [ebp - 0x1d4]
call fcn.00458cd0
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 int.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.00406960
mov dword [ebp - 4], ebx
cmp byte [edi + 0xc], bl
je 0x49c48b
cmp dword [esi + 0x14], 8
jb 0x49c401
mov esi, dword [esi]
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x49c48b
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.0041becb
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49c485
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004e15a0
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x49c44e
mov eax, dword [eax]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x49c47c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49c460
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0xd8]
call fcn.00406300
push edi
call fcn.004188d7
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.00406960
mov byte [ebp - 4], 1
cmp byte [edi + 0xd], bl
je 0x49c538
lea eax, [ebp - 0xf4]
push eax
call fcn.0042c6e0
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.0045ff10
add esp, 0x10
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.00406280
mov esi, 8
cmp dword [ebp - 0xfc], esi
jb 0x49c51b
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00406ec9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0xe0], esi
jb 0x49c53d
mov edx, dword [ebp - 0xf4]
push edx
call fcn.00406ec9
add esp, 4
jmp 0x49c53d
mov esi, 8
call fcn.0040ecf0
test eax, eax
jg 0x49c5db
call fcn.0040ecf0
test eax, eax
jg 0x49c5c0
push ebx
push 0x769
push str.policy_configurator.cpp
lea ecx, [ebp - 0x1d4]
call fcn.00458750
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 4], 4
mov dword [ebp - 0x118], 1
cmp dword [ebp - 0xa8], esi
jae 0x49c58b
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [edi]
push 0x52bc9c
push ecx
add eax, 8
push str.Adding_custom_policy:
push eax
call fcn.004461c0
add esp, 8
push eax
call fcn.004587e0
add esp, 8
push eax
call fcn.004461c0
add esp, 8
push eax
call fcn.004587e0
add esp, 8
test byte [ebp - 0x118], 1
mov dword [ebp - 4], 1
je 0x49c5db
lea ecx, [ebp - 0x1d4]
call fcn.00458cd0
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xa8], esi
jae 0x49c5ef
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 0x49c61e
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00406ec9
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 0x49c399
mov edx, dword [ebp - 0xd8]
push edx
call fcn.00406ec9
add esp, 4
jmp 0x49c399