Function at 0x401fb0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30010
call fcn.0041b9b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push str.PYLAUNCHER_NO_SEARCH_PATH
mov edi, edx
mov dword [ebp - 0x30008], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 2
jae 0x402230
push 0x8000
push str._usr_bin_env
call fcn.004095b4
mov esi, eax
add esp, 8
mov eax, dword [ebp + 8]
cmp eax, esi
jl 0x402230
lea edx, [edi + esi*2]
mov ebx, eax
mov dword [ebp - 0x3000c], edx
test edi, edi
je 0x402230
test esi, esi
jns 0x402036
push 0x8000
push str._usr_bin_env
call fcn.004095b4
mov esi, eax
add esp, 8
mov eax, ebx
test eax, eax
jns 0x40204a
push 0x8000
push edi
call fcn.004095b4
add esp, 8
mov ebx, eax
cmp ebx, esi
jl 0x40209b
test esi, esi
je 0x4021e0
push 0
push 0
push 0
push esi
push str._usr_bin_env
push esi
push edi
push 0
push 0x421a90
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
sub eax, 1
je 0x40209b
sub eax, 1
je 0x4021e0
sub eax, 1
je 0x40209b
push str._usr_bin_env
push esi
push edi
push esi
push str.Error_comparing__.s_and__.s__compareArgument_
push 0
call fcn.004011c0
add esp, 0x18
xor al, al
test al, al
je 0x402230
mov esi, dword [ebp - 0x3000c]
lea eax, [ebp - 0x10004]
xor ebx, ebx
xor edi, edi
sub eax, esi
mov dword [ebp - 0x30010], eax
nop dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x4020f4
push eax
call fcn.0040f470
add esp, 4
test eax, eax
jne 0x4020f4
movzx eax, word [esi]
mov ecx, dword [ebp - 0x30010]
cmp eax, 0x2e
cmove ebx, edi
inc edi
mov word [ecx + esi], ax
add esi, 2
cmp edi, 0x8000
jl 0x4020c0
test edi, edi
je 0x402255
cmp edi, 0x8000
je 0x402255
lea eax, [edi + edi]
cmp eax, 0x10000
jae 0x402360
xor ecx, ecx
mov word [ebp + eax - 0x10004], cx
test ebx, ebx
je 0x40216b
lea esi, [ebp - 0x10004]
lea esi, [esi + ebx*2]
test esi, esi
je 0x40216b
push 1
push 0xffffffffffffffff
push str..exe
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
sub eax, 1
je 0x40216b
sub eax, 1
je 0x40218c
sub eax, 1
je 0x40216b
push str..exe
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push str.Error_comparing__.s_and__.s__comparePath_
push 0
call fcn.004011c0
add esp, 0x18
push str..exe
lea eax, [ebp - 0x10004]
push 0x8000
push eax
call fcn.0040ef6a
add esp, 0xc
test eax, eax
jne 0x402255
push 0x8000
lea eax, [ebp - 0x30004]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4021e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x402230
lea eax, [ebp - 0x10004]
push eax
push str.Failed_to_read_PATH_n
push 0
call fcn.004011c0
add esp, 0xc
mov eax, 0x6d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x40209d
push 0
lea eax, [ebp - 0x20004]
push eax
push 0x8000
push 0
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebp - 0x30004]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov ebx, eax
test ebx, ebx
jne 0x40226b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10004]
push eax
jne 0x402246
push str._Did_not_find__s_on_PATH_n
call fcn.004010f0
add esp, 8
pop edi
pop esi
mov eax, 0x71
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
push str.Failed_to_find__s_on_PATH_n
push 0
call fcn.004011c0
add esp, 0xc
pop edi
pop esi
mov eax, 0x66
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
push 0x8000
lea eax, [ebp - 0x10004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4022d1
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x20004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
sub eax, 1
je 0x4022d1
sub eax, 1
je 0x402338
sub eax, 1
je 0x4022d1
lea eax, [ebp - 0x20004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10004]
push eax
push 0xffffffffffffffff
push str.Error_comparing__.s_and__.s__comparePath_
push 0
call fcn.004011c0
add esp, 0x18
mov ecx, dword [ebp - 0x30008]
inc ebx
mov edx, ebx
call fcn.00401350
mov esi, eax
test esi, esi
je 0x40234a
lea eax, [ebp - 0x20004]
push eax
push ebx
push esi
call fcn.0040ef06
add esp, 0xc
test eax, eax
jne 0x40234a
mov ecx, dword [ebp - 0x30008]
mov edx, dword [ebp - 0x3000c]
push esi
push str._Found__s_on_PATH_n
mov dword [ecx + 8], esi
lea eax, [edx + edi*2]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ecx + 0x20], eax
call fcn.004010f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
push str._ignoring_recursive_shebang_command_n
call fcn.004010f0
add esp, 4
jmp 0x402230
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406004
mov esp, ebp
pop ebp
ret
call fcn.00406134
int3