Function at 0x47f7a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c21
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x507254]
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, 0x50a7a0
call fcn.00462780
mov eax, dword [eax + 4]
test eax, eax
je 0x47fa47
cmp eax, dword [0x50a7a4]
je 0x47fa47
push 0x4b95f515
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
lea eax, [ebp - 0x18]
mov ecx, 0x50a7a0
push eax
call fcn.00462780
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x47f916
cmp dword [0x50a7a8], 0x71c71c7
je 0x47fdaa
mov dword [ebp - 0x20], 0x50a7a4
push 0x24
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
call fcn.004a6295
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 [0x50a7a8]
inc eax
mov byte [ebp - 4], 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4f2c60]
mov eax, dword [0x50a7bc]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4f2c60]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x50a7a0]
seta al
test al, al
je 0x47f8fe
mov ecx, 0x50a7a0
call fcn.00477100
push 0x4b95f515
push esi
lea eax, [ebp - 0x20]
mov ecx, 0x50a7a0
push eax
call fcn.00462780
mov ecx, dword [eax]
jmp 0x47f901
mov ecx, dword [ebp - 0x18]
push edi
push ecx
push 0x4b95f515
mov ecx, 0x50a7a0
mov byte [ebp - 4], 0
call fcn.00476f40
add eax, 0xc
mov ecx, 0x5070fc
push eax
call fcn.0045cf00
push 0xb0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.004a8a30
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 1
call fcn.00411c50
push 0x4ecb30
push dword [0x507050]
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
call fcn.00412180
add esp, 8
push eax
call fcn.00412180
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
push 0x4ddcc4
push ecx
push eax
call fcn.00412180
add esp, 8
push eax
call fcn.00412180
add esp, 8
mov ecx, eax
push 2
call fcn.0040b3f0
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00411c30
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 6
jb 0x47f9bb
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.00403940
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 7
push eax
mov ecx, 0x5070fc
call fcn.00402490
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x47fd12
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fd08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdb4
jmp 0x47fd08
lea eax, [ebp - 0x104]
push eax
call fcn.0047a630
add esp, 4
mov ecx, 0x5070fc
push eax
call fcn.00402f80
lea ecx, [ebp - 0x104]
call fcn.00402710
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 0x47fab3
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 0x47fac4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x47f924
push esi
push esi
push str.ProgramData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47fb82
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.004a6639
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 0x47fb6f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fb20
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.00403940
mov byte [ebp - 4], 0
test edi, edi
je 0x47fb9d
push 2
push edi
call fcn.004a6287
add esp, 8
jmp 0x47fb9d
mov byte [ebp - 4], 0
test edi, edi
je 0x47fb82
push 2
push edi
call fcn.004a6287
add esp, 8
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x4eb7ca
push eax
call fcn.004616b0
add esp, 0xc
lea eax, [ebp - 0xec]
mov ecx, 0x5070fc
push eax
call fcn.00402f80
lea ecx, [ebp - 0xec]
call fcn.00402710
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x14]
push 0x4eb7ca
push eax
call fcn.004616b0
add esp, 0xc
lea eax, [ebp - 0xec]
cmp dword [ebp - 0xd8], 8
mov ecx, 0x5070fc
cmovae eax, dword [ebp - 0xec]
push dword [ebp - 0xdc]
push eax
call fcn.00414780
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.00402710
test esi, esi
je 0x47fd59
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.00403940
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x5070fc
call fcn.00402490
mov edx, dword [ebp - 0xd8]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x47fca0
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fc96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdb9
push edx
push ecx
call fcn.004a6287
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x5070fc
mov dword [ebp - 0x14], 0x507cf0
call fcn.004070c0
add esp, 8
test al, al
je 0x47fcd6
lea eax, [ebp - 0x18]
push eax
push 0x5070fc
call fcn.0047bc90
add esp, 8
jmp 0x47fcef
cmp dword [0x507110], 8
mov eax, 0x5070fc
cmovae eax, dword [0x5070fc]
push eax
call fcn.0048fee3
test al, al
jne 0x47f924
push 0x4eb7ca
mov ecx, 0x5070fc
call fcn.0045ce90
jmp 0x47fd59
push edx
push ecx
call fcn.004a6287
add esp, 8
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x47fd4e
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fd44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdbe
push edx
push ecx
call fcn.004a6287
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00410a50
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x47fd8f
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fd85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdc3
push edx
push ecx
call fcn.004a6287
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.004a6256
mov esp, ebp
pop ebp
ret
push str.unordered_map_set_too_long
call fcn.0048faf8
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
int3