Function at 0x4c6b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d7b1
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b95f515
lea eax, [ebp - 0xd4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xd4], 0
push eax
mov ecx, 0x556aa0
call fcn.004ab260
mov eax, dword [eax + 4]
test eax, eax
je 0x4c6db7
cmp eax, dword [0x556aa4]
je 0x4c6db7
push 0x4b95f515
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
lea eax, [ebp - 0x18]
mov ecx, 0x556aa0
push eax
call fcn.004ab260
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4c6c86
cmp dword [0x556aa8], 0x71c71c7
je 0x4c711a
mov dword [ebp - 0x20], 0x556aa4
push 0x24
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
call fcn.004a4626
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xd4]
lea esi, [edi + 8]
mov dword [ebp - 0x1c], edi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov eax, dword [0x556aa8]
inc eax
mov byte [ebp - 4], 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52f5d0]
mov eax, dword [0x556abc]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52f5d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x556aa0]
seta al
test al, al
je 0x4c6c6e
mov ecx, 0x556aa0
call fcn.004be610
push 0x4b95f515
push esi
lea eax, [ebp - 0x20]
mov ecx, 0x556aa0
push eax
call fcn.004ab260
mov ecx, dword [eax]
jmp 0x4c6c71
mov ecx, dword [ebp - 0x18]
push edi
push ecx
push 0x4b95f515
mov ecx, 0x556aa0
mov byte [ebp - 4], 0
call fcn.004be450
add eax, 0xc
mov ecx, 0x54d27c
push eax
call fcn.004a5af0
push 0xb0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.004d78d0
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 1
call fcn.0040d5f0
push 0x52b768
push dword [0x54d1d0]
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
call fcn.004110a0
add esp, 8
push eax
call fcn.004110a0
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
push 0x514bbc
push ecx
push eax
call fcn.004110a0
add esp, 8
push eax
call fcn.004110a0
add esp, 8
mov ecx, eax
push 2
call fcn.00413130
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0040d5d0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 6
jb 0x4c6d2b
mov eax, dword [eax]
push ecx
xor edx, edx
mov dword [ebp - 0xec], 0
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], dx
call fcn.00415d70
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 7
push eax
mov ecx, 0x54d27c
call fcn.00405720
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x4c7082
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7078
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7124
jmp 0x4c7078
lea eax, [ebp - 0x104]
push eax
call fcn.004c19a0
add esp, 4
mov ecx, 0x54d27c
push eax
call fcn.0040f190
lea ecx, [ebp - 0x104]
call fcn.00405a10
lea eax, [ebp - 0xd4]
xor esi, esi
push eax
push 8
mov dword [ebp - 0xd4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c6e23
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x14
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x4c6e34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4c6c94
push esi
push esi
push str.ProgramData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4c6ef2
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4905
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
push esi
push edi
push str.ProgramData
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4c6edf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6e90
sub ecx, edx
mov dword [ebp - 0xec], 0
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
call fcn.00415d70
mov byte [ebp - 4], 0
test edi, edi
je 0x4c6f0d
push 2
push edi
call fcn.004a44fe
add esp, 8
jmp 0x4c6f0d
mov byte [ebp - 4], 0
test edi, edi
je 0x4c6ef2
push 2
push edi
call fcn.004a44fe
add esp, 8
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x5206ef
push eax
call fcn.004aa2a0
add esp, 0xc
lea eax, [ebp - 0xec]
mov ecx, 0x54d27c
push eax
call fcn.0040f190
lea ecx, [ebp - 0xec]
call fcn.00405a10
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x5206ef
push eax
call fcn.004aa2a0
add esp, 0xc
lea eax, [ebp - 0xec]
cmp dword [ebp - 0xd8], 8
mov ecx, 0x54d27c
cmovae eax, dword [ebp - 0xec]
push dword [ebp - 0xdc]
push eax
call fcn.0047a560
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.00405a10
test esi, esi
je 0x4c70c9
push 0x24
xor eax, eax
mov dword [ebp - 0xec], 0
push str.48C4687D_9760_4F5B_BAB3_60351B0841E4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
call fcn.00415d70
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x54d27c
call fcn.00405720
mov edx, dword [ebp - 0xd8]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4c7010
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7129
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x54d27c
mov dword [ebp - 0x14], 0x54dd00
call fcn.0046e2a0
add esp, 8
test al, al
je 0x4c7046
lea eax, [ebp - 0x18]
push eax
push 0x54d27c
call fcn.004c3000
add esp, 8
jmp 0x4c705f
cmp dword [0x54d290], 8
mov eax, 0x54d27c
cmovae eax, dword [0x54d27c]
push eax
call fcn.004910ca
test al, al
jne 0x4c6c94
push 0x5206ef
mov ecx, 0x54d27c
call fcn.004a5a80
jmp 0x4c70c9
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x4c70be
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c70b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c712e
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.0040b0b0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4c70ff
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c70f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7133
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
push str.unordered_map_set_too_long
call fcn.0048fb76
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
int3