Function at 0x4acf10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov esi, ecx
lea ecx, [ebp - 0x444]
push dword [ebp + 8]
call fcn.0048c6d0
add esp, 4
mov eax, dword [ebp - 0x444]
cmp eax, 0x80000000
jne 0x4acf52
lea ecx, [ebp - 0x444]
call fcn.0048c9a0
mov dword [esi], 0x80000000
jmp 0x4ad0ff
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x20], esi
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], ecx
cmp esi, 0x201
jae 0x4acfc0
jmp 0x4acfae
jbe 0x4ad048
cmp esi, 0x201
jae 0x4acfc0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x444]
mov edi, esi
jmp 0x4acff4
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x4acfe5
mov edx, edi
lea ecx, [ebp - 0x34]
push esi
call fcn.0048cb30
add esp, 4
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push ebx
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x4ad018
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4ad10a
cmp esi, edi
jne 0x4acfa0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4ad127
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4acfae
jmp 0x4acfc0
mov edx, dword [ebp - 0x28]
cmp esi, edx
ja 0x4ad140
mov edx, ebx
lea ecx, [ebp - 0x44]
push esi
call fcn.0048e540
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x4ad086
push dword [ebp - 0x18]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp edi, 0x80000000
jne 0x4ad0d8
mov eax, dword [ebp - 0x20]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x4ad0e9
mov edi, dword [esi]
mov ebx, esi
mov esi, dword [esi + 4]
mov eax, dword [esi]
push edi
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x4ad0c8
cmp dword [esi + 8], 9
jb 0x4ad0ba
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
push ebx
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x4ad0e9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x24], 0
je 0x4ad0ff
push dword [ebp - 0x1c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov edi, 0x80000000
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp dword [ebp - 0x14], 0
jne 0x4ad076
jmp 0x4ad086
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_home_rafalh_.cargo_registry_src_index.crates.io_6f17d22bba15001f_gltf_1.0.0_src_animation_util_mod.rs
push 0x583a6c
call fcn.0046b190
add esp, 4
jmp 0x4ad14f
mov ecx, esi
push 0x583a5c
call fcn.0046a7e0
add esp, 4
ud2