Function at 0x473990
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c8f79
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
mov eax, dword [esp + 0x144]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov ebx, 0x4f0980
mov dword [esp + 0x14], 0
mov ecx, dword [ebx]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x473a07
mov edi, dword [esp + 0x28]
sub eax, esi
sar eax, 1
mov edx, edi
mov esi, edi
cmp edi, eax
jb 0x473a24
mov esi, eax
cmp dword [esp + 0x20], 8
jb 0x473a30
mov edx, dword [ebp + 4]
jmp 0x473a33
lea edx, [ebp + 4]
test esi, esi
jbe 0x473a4e
mov bp, word [edx]
cmp bp, word [ecx]
jne 0x473aac
add edx, 2
add ecx, 2
sub esi, 1
jne 0x473a37
mov ebp, dword [esp + 0x18]
cmp edi, eax
jb 0x473a5d
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
je 0x473ac2
mov eax, dword [esp + 0x14]
add eax, 0x10
add ebx, 0x10
mov dword [esp + 0x14], eax
cmp eax, 0x80
jb 0x473a00
push 0
push 0x62e
push str..policy_configurator.cpp
lea ecx, [esp + 0x58]
call fcn.004440f0
mov edx, dword [esp + 0x1c]
mov ecx, 8
mov dword [esp + 0x138], 5
cmp dword [edx + 0x18], ecx
jb 0x473d6f
mov edx, dword [edx + 4]
jmp 0x473d72
mov dx, bp
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
je 0x473a4a
mov ebp, dword [esp + 0x18]
jmp 0x473a59
mov ebp, dword [esp + 0x1c]
xor eax, eax
push 0xffffffffffffffff
push eax
push ebp
lea ecx, [esp + 0x100]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], 0
mov word [esp + 0x104], ax
call fcn.00401c43
cmp byte [ebx + 0xc], 0
mov dword [esp + 0x138], 0
je 0x473bab
cmp dword [ebp + 0x18], 8
jb 0x473b1d
mov eax, dword [ebp + 4]
add ebp, 4
jmp 0x473b22
add ebp, 4
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
test eax, eax
je 0x473ba7
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.0048d83c
mov edi, eax
add esp, 4
test edi, edi
je 0x473ba7
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0048e760
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [ecx + 0x18], 8
jb 0x473b73
mov ebp, dword [ebp]
push esi
push edi
push ebp
call ebx
cmp eax, esi
jae 0x473b9e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473b81
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xfc]
call fcn.00401cd6
push edi
call fcn.0048eb45
add esp, 4
mov ebx, dword [esp + 0x14]
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [esp + 0xfc]
xor edx, edx
mov ebp, 7
push eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], dx
call fcn.00401c43
cmp byte [ebx + 0xd], 0
mov byte [esp + 0x138], 1
je 0x473c78
lea ecx, [esp + 0x110]
push ecx
call fcn.00472040
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x148], 2
call fcn.00438360
add esp, 0x10
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x144], 3
call fcn.00401c43
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x473c55
mov edx, dword [esp + 0x34]
push edx
call fcn.0048e006
add esp, 4
mov byte [esp + 0x138], 1
cmp dword [esp + 0x128], esi
jb 0x473c7d
mov eax, dword [esp + 0x114]
push eax
call fcn.0048e006
add esp, 4
jmp 0x473c7d
mov esi, 8
push edi
push 0x626
push str..policy_configurator.cpp
lea ecx, [esp + 0x58]
call fcn.004440f0
mov ecx, dword [esp + 0xdc]
mov byte [esp + 0x138], 4
cmp dword [esp + 0xf0], esi
jae 0x473cb0
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [ebx]
push 0x4f095c
push ecx
add eax, 4
push str.Adding_custom_policy:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 1
call fcn.00443d90
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], esi
jae 0x473d0d
lea eax, [esp + 0xdc]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
call edx
cmp dword [esp + 0xf0], esi
jb 0x473d3c
mov eax, dword [esp + 0xdc]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xec], edi
mov word [esp + 0xdc], cx
cmp dword [esp + 0x10c], esi
jb 0x473dc6
mov edx, dword [esp + 0xf8]
push edx
call fcn.0048e006
add esp, 4
jmp 0x473dc6
add edx, 4
cmp dword [ebp + 0x18], ecx
jb 0x473d7c
mov ecx, dword [ebp + 4]
jmp 0x473d7f
lea ecx, [ebp + 4]
push edx
push 0x4f095c
push ecx
add eax, 4
push str.Custom_policy_syntax_error:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x138], 0xffffffff
call fcn.00443d90
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0048e25d
add esp, 0x128
ret 8