Function at 0x484130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfa44
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x522638]
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], 0x5026a0
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 0x484190
mov ecx, dword [esi + 0x10]
sub eax, edi
sar eax, 1
push eax
push edx
push ecx
push 0
mov ecx, esi
call fcn.00407190
test eax, eax
je 0x48426c
mov eax, dword [ebp - 0x8c]
add dword [ebp - 0x84], 0x10
add eax, 0x10
mov dword [ebp - 0x8c], eax
cmp eax, 0x90
jb 0x484182
call fcn.0040e750
test eax, eax
jg 0x48424a
push 0
push 0x721
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.0040e760
mov ecx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x88], 2
cmp dword [ebx + 0x14], ecx
jb 0x484210
mov ebx, dword [ebx]
cmp dword [esi + 0x14], ecx
jb 0x484217
mov esi, dword [esi]
push ebx
push 0x502684
push esi
add eax, 8
push str.Custom_policy_syntax_error:
push eax
call fcn.00415d00
add esp, 8
push eax
call fcn.00437fa0
add esp, 8
push eax
call fcn.00415d00
add esp, 8
push eax
call fcn.00437fa0
add esp, 8
test byte [ebp - 0x88], 2
mov dword [ebp - 4], 0xffffffff
je 0x484265
lea ecx, [ebp - 0x140]
call fcn.004164a0
mov al, 1
jmp 0x48449c
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.00406640
mov esi, dword [ebp - 0x84]
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], 0
mov edi, 8
je 0x48433d
cmp dword [ebx + 0x14], edi
jb 0x4842b1
mov eax, dword [ebx]
jmp 0x4842b3
mov eax, ebx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x48433d
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.004159eb
mov edi, eax
add esp, 4
test edi, edi
je 0x484332
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004b8020
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4842fd
mov ebx, dword [ebx]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x484329
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484310
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00405fe0
push edi
call fcn.0041ecb3
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.00406640
cmp byte [esi + 0xd], 0
mov ebx, 1
mov byte [ebp - 4], bl
je 0x4843c1
lea eax, [ebp - 0x64]
push eax
call fcn.0042a3d0
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.00427430
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00405f60
cmp dword [ebp - 0x6c], edi
jb 0x4843ad
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ca9
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], edi
jb 0x4843c1
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406ca9
add esp, 4
call fcn.0040e750
test eax, eax
jg 0x48442b
push 0
push 0x719
push str.policy_configurator.cpp
lea ecx, [ebp - 0x140]
call fcn.0040e760
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x18], edi
jae 0x4843f6
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [esi]
push 0x502684
push ecx
add eax, 8
push str.Adding_custom_policy:
push eax
call fcn.00415d00
add esp, 8
push eax
call fcn.00437fa0
add esp, 8
push eax
call fcn.00415d00
add esp, 8
push eax
call fcn.00437fa0
add esp, 8
mov dword [ebp - 4], ebx
test byte [ebp - 0x88], bl
je 0x484441
lea ecx, [ebp - 0x140]
call fcn.004164a0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x48444c
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 0x484475
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
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 0x48449a
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ca9
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