Function at 0x485530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4be1
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4f4164]
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, 0x4f991c
call fcn.0046ab70
mov eax, dword [eax + 4]
test eax, eax
je 0x4857d7
cmp eax, dword [0x4f9920]
je 0x4857d7
push 0x4b95f515
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
lea eax, [ebp - 0x18]
mov ecx, 0x4f991c
push eax
call fcn.0046ab70
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4856a6
cmp dword [0x4f9924], 0x71c71c7
je 0x485b3a
mov dword [ebp - 0x20], 0x4f9920
push 0x24
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
call fcn.00450e28
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 [0x4f9924]
inc eax
mov byte [ebp - 4], 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4cdde0]
mov eax, dword [0x4f9938]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4cdde0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x4f991c]
seta al
test al, al
je 0x48568e
mov ecx, 0x4f991c
call fcn.0047cb30
push 0x4b95f515
push esi
lea eax, [ebp - 0x20]
mov ecx, 0x4f991c
push eax
call fcn.0046ab70
mov ecx, dword [eax]
jmp 0x485691
mov ecx, dword [ebp - 0x18]
push edi
push ecx
push 0x4b95f515
mov ecx, 0x4f991c
mov byte [ebp - 4], 0
call fcn.0042b200
add eax, 0xc
mov ecx, 0x4f52c4
push eax
call fcn.00469230
push 0xb0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.00495790
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 1
call fcn.00439740
push 0x4c9bc0
push dword [0x4f5230]
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
call fcn.00469560
add esp, 8
push eax
call fcn.00469560
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
push 0x4d4e44
push ecx
push eax
call fcn.00469560
add esp, 8
push eax
call fcn.00469560
add esp, 8
mov ecx, eax
push 2
call fcn.0043a820
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00440c10
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 6
jb 0x48574b
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.004038a0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 7
push eax
mov ecx, 0x4f52c4
call fcn.0040f570
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x485aa2
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485a98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485b44
jmp 0x485a98
lea eax, [ebp - 0x104]
push eax
call fcn.00480260
add esp, 4
mov ecx, 0x4f52c4
push eax
call fcn.004036f0
lea ecx, [ebp - 0x104]
call fcn.00403690
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 0x485843
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 0x485854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4856b4
push esi
push esi
push str.ProgramData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x485912
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.00451161
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 0x4858ff
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4858b0
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.004038a0
mov byte [ebp - 4], 0
test edi, edi
je 0x48592d
push 2
push edi
call fcn.00450975
add esp, 8
jmp 0x48592d
mov byte [ebp - 4], 0
test edi, edi
je 0x485912
push 2
push edi
call fcn.00450975
add esp, 8
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x4cb58c
push eax
call fcn.00469cd0
add esp, 0xc
lea eax, [ebp - 0xec]
mov ecx, 0x4f52c4
push eax
call fcn.004036f0
lea ecx, [ebp - 0xec]
call fcn.00403690
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x4cb58c
push eax
call fcn.00469cd0
add esp, 0xc
lea eax, [ebp - 0xec]
cmp dword [ebp - 0xd8], 8
mov ecx, 0x4f52c4
cmovae eax, dword [ebp - 0xec]
push dword [ebp - 0xdc]
push eax
call fcn.0047e370
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.00403690
test esi, esi
je 0x485ae9
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.004038a0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x4f52c4
call fcn.0040f570
mov edx, dword [ebp - 0xd8]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x485a30
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485a26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485b49
push edx
push ecx
call fcn.00450975
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x4f52c4
mov dword [ebp - 0x14], 0x4f5d38
call fcn.0042e890
add esp, 8
test al, al
je 0x485a66
lea eax, [ebp - 0x18]
push eax
push 0x4f52c4
call fcn.00481730
add esp, 8
jmp 0x485a7f
cmp dword [0x4f52d8], 8
mov eax, 0x4f52c4
cmovae eax, dword [0x4f52c4]
push eax
call fcn.00452b4d
test al, al
jne 0x4856b4
push 0x4cb58c
mov ecx, 0x4f52c4
call fcn.004691c0
jmp 0x485ae9
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x485ade
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485ad4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485b4e
push edx
push ecx
call fcn.00450975
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.0043aaa0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x485b1f
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485b15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485b53
push edx
push ecx
call fcn.00450975
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.00450df0
mov esp, ebp
pop ebp
ret
push str.unordered_map_set_too_long
call fcn.00451caa
call fcn.004984ff
call fcn.004984ff
call fcn.004984ff
call fcn.004984ff
int3