Function at 0x498d70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x450
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4acba0
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x45c]
push eax
call fcn.004945e0
add esp, 4
mov eax, dword [ebp - 0x45c]
cmp eax, 0x80000000
jne 0x498dd8
lea ecx, [ebp - 0x45c]
call fcn.004948b0
mov dword [edi], 0x80000000
jmp 0x498fa8
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x38], edi
mov edi, 0x200
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x34], ecx
cmp edi, 0x201
jae 0x498e40
jmp 0x498e2e
jbe 0x498ec9
cmp edi, 0x201
jae 0x498e40
mov dword [ebp - 0x24], 0x200
lea ebx, [ebp - 0x45c]
mov esi, edi
jmp 0x498e71
mov esi, dword [ebp - 0x4c]
sub edi, esi
je 0x498e65
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x30]
mov edx, esi
push edi
call fcn.004ce770
add esp, 4
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x498e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x498f26
cmp edi, esi
jne 0x498e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x498fe8
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x498e2e
jmp 0x498e40
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
cmp edi, edx
ja 0x499008
lea ecx, [ebp - 0x5c]
mov edx, ebx
push edi
call fcn.004972f0
add esp, 4
mov esi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x58]
movq xmm0, qword [ebp - 0x54]
cmp dword [ebp - 0x30], 0
je 0x498f15
push dword [ebp - 0x2c]
push 0
push dword [0x530ac8]
movdqu xmmword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_HeapFree]
movdqu xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
cmp esi, 0x80000000
jne 0x498f87
movd esi, xmm0
jmp 0x498f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x30], 0
mov esi, eax
je 0x498f45
push dword [ebp - 0x2c]
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x38]
xor ebx, ebx
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x498f91
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x4c], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x498fd1
cmp dword [eax + 8], 9
jae 0x498fbc
mov eax, dword [ebp - 0x20]
jmp 0x498fc2
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
cmp dword [ebp - 0x3c], 0
je 0x498fa8
push dword [ebp - 0x34]
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x3c], 0
jne 0x498f97
jmp 0x498fa8
mov dword [ebp - 0x10], 2
mov ecx, str.internal_error:_entered_unreachable_codemain.rs_src_runtime_blocking_schedule.rs
mov edx, 0x28
push 0x4fbe48
call fcn.004cb970
add esp, 4
jmp 0x499017
mov ecx, edi
push 0x4fbe38
call fcn.004cb960
add esp, 4
ud2