Function at 0x5e1d80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x62c300
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 - 0x458]
push eax
call fcn.005de730
add esp, 4
mov eax, dword [ebp - 0x458]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x5e1ed7
mov eax, dword [ebp - 0x454]
mov esi, 0x200
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], eax
cmp esi, 0x201
jae 0x5e1e40
jmp 0x5e1e2e
jbe 0x5e1eeb
cmp esi, 0x201
jae 0x5e1e40
lea edi, [ebp - 0x458]
mov dword [ebp - 0x28], 0x200
mov ebx, esi
jmp 0x5e1e7b
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub esi, ebx
sub eax, ebx
cmp eax, esi
jae 0x5e1e6c
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x48]
mov edx, ebx
push esi
call fcn.00642e70
add esp, 4
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x5e1ea2
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x5e1f2c
cmp esi, ebx
jne 0x5e1e20
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5e1fe2
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x5e1e2e
jmp 0x5e1e40
lea ecx, [ebp - 0x458]
call fcn.005de900
mov byte [edi + 0xc], 2
jmp 0x5e1fce
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 2
cmp esi, edx
ja 0x5e2002
lea ecx, [ebp - 0x58]
mov edx, edi
push esi
call fcn.005e0460
add esp, 4
mov eax, dword [ebp - 0x50]
movzx edx, word [ebp - 0x4b]
movzx ecx, byte [ebp - 0x49]
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
movzx ebx, byte [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x2c], dx
mov byte [ebp - 0x2a], cl
jmp 0x5e1f38
xor esi, esi
mov bl, 2
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5e1f4c
mov ecx, dword [ebp - 0x30]
mov edx, 2
call fcn.00404240
cmp bl, 2
jne 0x5e1f9c
mov eax, dword [ebp - 0x38]
mov byte [eax + 0xc], 2
mov eax, esi
cmp al, 3
jne 0x5e1fbb
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x5e1f8d
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
call fcn.00404240
mov ecx, dword [ebp - 0x24]
mov edx, 4
call fcn.00404240
jmp 0x5e1fbb
movzx eax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov bh, byte [ebp - 0x2a]
mov edx, dword [ebp - 0x20]
mov word [ecx + 0xd], ax
mov byte [ecx + 0xf], bh
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov byte [ecx + 0xc], bl
cmp dword [ebp - 0x3c], 0
je 0x5e1fce
mov ecx, dword [ebp - 0x34]
mov edx, 2
call fcn.00404240
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 2
mov ecx, str.internal_error:_entered_unreachable_codecannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_std_src_threadlocal.rs
mov edx, 0x28
push 0xa0cb2c
call fcn.0063cd70
add esp, 4
jmp 0x5e2011
mov ecx, esi
push 0xa0cb3c
call fcn.0063cd00
add esp, 4
ud2