Function at 0x403eb0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.0041bfa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8000
lea eax, [ebp - 0x10004]
mov dword [ebp - 0x10014], edx
push eax
push str.VIRTUAL_ENV
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403f4b
mov esi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
lea eax, [ebp - 0x10004]
push 1
push str.Scripts
push eax
push 0x8000
push eax
call esi
test eax, eax
js 0x403f4b
push 1
push dword [edi + 0x14]
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call esi
test eax, eax
js 0x403f4b
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403f5e
lea eax, [ebp - 0x10004]
push eax
push str.Python_executable__s_missing_from_virtual_env_n
call fcn.004010f0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
push 0x30
call fcn.0040f4ae
mov esi, eax
add esp, 4
test esi, esi
je 0x404123
push 0x30
push 0
push esi
call fcn.00407080
lea ebx, [esi + 0xc]
add esp, 0xc
test ebx, ebx
jne 0x403fa3
push esi
call fcn.0040f3ca
add esp, 4
lea eax, [ebx + 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x10]
test eax, eax
je 0x404113
mov dword [eax], 0
lea eax, [esi + 0x28]
mov byte [esi + 0x2c], 1
mov dword [esi + 0x14], 0x14
test eax, eax
jne 0x403fce
lea edi, [eax + 0x68]
jmp 0x4040a3
push 0x7fff
push str.Active_venv
call fcn.00409554
mov dword [ebp - 0x10008], eax
inc eax
mov dword [ebp - 0x1000c], eax
lea ecx, [eax + eax]
push ecx
call fcn.0040f4ae
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x404004
lea edi, [eax + 0x68]
jmp 0x4040a3
push dword [ebp - 0x10008]
push str.Active_venv
push dword [ebp - 0x1000c]
push edi
call fcn.0040f587
mov dword [esi + 0x28], edi
add esp, 0x10
lea edi, [esi + 0x1c]
test edi, edi
jne 0x40402f
mov edi, 0x68
jmp 0x4040a3
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.00409554
mov dword [ebp - 0x1000c], eax
inc eax
mov dword [ebp - 0x10008], eax
lea ecx, [eax + eax]
push ecx
call fcn.0040f4ae
add esp, 0xc
mov dword [ebp - 0x10010], eax
test eax, eax
jne 0x404068
lea edi, [eax + 0x68]
jmp 0x4040a3
push dword [ebp - 0x1000c]
lea ecx, [ebp - 0x10004]
push ecx
push dword [ebp - 0x10008]
push eax
call fcn.0040f587
mov eax, dword [ebp - 0x10010]
add esp, 0x10
mov ecx, dword [ebp - 0x10014]
mov edx, esi
mov dword [edi], eax
call fcn.00403160
mov edi, eax
test edi, edi
je 0x403f4b
push dword [ebx]
call fcn.0040f3ca
push dword [esi + 0x10]
call fcn.0040f3ca
push dword [esi + 0x18]
call fcn.0040f3ca
push dword [esi + 0x1c]
call fcn.0040f3ca
push dword [esi + 0x20]
call fcn.0040f3ca
push dword [esi + 0x28]
call fcn.0040f3ca
mov ecx, dword [esi]
call fcn.00402fb0
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00402fb0
push esi
mov dword [esi + 4], 0
call fcn.0040f3ca
add esp, 0x1c
cmp edi, 0x6e
je 0x403f4b
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
push dword [ebx]
call fcn.0040f3ca
push esi
call fcn.0040f3ca
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fcc
mov esp, ebp
pop ebp
ret