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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.004219e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8000
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x10018], edx
push eax
push str.VIRTUAL_ENV
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4043db
mov esi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
lea eax, [ebp - 0x10008]
push 1
push str.Scripts
push eax
push 0x8000
push eax
call esi
test eax, eax
js 0x4043db
push 1
push dword [edi + 0x14]
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call esi
test eax, eax
js 0x4043db
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4043ee
lea eax, [ebp - 0x10008]
push eax
push str.Python_executable__s_missing_from_virtual_env_n
call fcn.00401130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064d4
mov esp, ebp
pop ebp
ret
push 0x30
call fcn.0041530e
mov esi, eax
add esp, 4
test esi, esi
je 0x4045b0
push 0x30
push 0
push esi
call fcn.004075a0
lea ebx, [esi + 0xc]
add esp, 0xc
test ebx, ebx
je 0x4045a7
lea eax, [esi + 0x10]
test eax, eax
je 0x40459d
mov dword [eax], 0
lea eax, [esi + 0x28]
mov byte [esi + 0x2c], 1
mov dword [esi + 0x14], 0x14
test eax, eax
jne 0x404445
lea edi, [eax + 0x68]
jmp 0x40451b
push 0x7fff
push str.Active_venv
call fcn.00409a84
mov dword [ebp - 0x1000c], eax
inc eax
mov dword [ebp - 0x10010], eax
lea ecx, [eax + eax]
push ecx
call fcn.0041530e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40447b
lea edi, [eax + 0x68]
jmp 0x40451b
push dword [ebp - 0x1000c]
push str.Active_venv
push dword [ebp - 0x10010]
push edi
call fcn.004153e7
mov dword [esi + 0x28], edi
add esp, 0x10
lea edi, [esi + 0x1c]
test edi, edi
jne 0x4044a6
mov edi, 0x68
jmp 0x40451b
lea eax, [ebp - 0x10008]
push 0x7fff
push eax
call fcn.00409a84
mov dword [ebp - 0x10010], eax
inc eax
mov dword [ebp - 0x1000c], eax
lea ecx, [eax + eax]
push ecx
call fcn.0041530e
add esp, 0xc
mov dword [ebp - 0x10014], eax
test eax, eax
jne 0x4044df
lea edi, [eax + 0x68]
jmp 0x40451b
push dword [ebp - 0x10010]
lea ecx, [ebp - 0x10008]
push ecx
push dword [ebp - 0x1000c]
push eax
call fcn.004153e7
mov eax, dword [ebp - 0x10014]
xor edx, edx
mov ecx, dword [ebp - 0x10018]
push esi
mov dword [edi], eax
call fcn.004032d0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4043db
push dword [ebx]
call fcn.00415234
add esp, 4
push dword [esi + 0x10]
call fcn.00415234
add esp, 4
push dword [esi + 0x18]
call fcn.00415234
add esp, 4
push dword [esi + 0x1c]
call fcn.00415234
add esp, 4
push dword [esi + 0x20]
call fcn.00415234
add esp, 4
push dword [esi + 0x28]
call fcn.00415234
mov ecx, dword [esi]
add esp, 4
call fcn.00403120
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00403120
push esi
mov dword [esi + 4], 0
call fcn.00415234
add esp, 4
cmp edi, 0x6e
je 0x4043db
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064d4
mov esp, ebp
pop ebp
ret
push dword [ebx]
call fcn.00415234
add esp, 4
push esi
call fcn.00415234
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064d4
mov esp, ebp
pop ebp
ret