Function at 0x4027e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x423b88
push dword [ecx]
lea eax, [ebp - 0x318]
mov dword [ebp - 0x314], edx
push eax
call fcn.0040ccb4
add esp, 0xc
test eax, eax
jne 0x402980
push esi
push edi
push dword [ebp - 0x318]
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 1
push eax
call fcn.0040e06b
mov esi, eax
push esi
push str.maybe_handle_shebang:_read__zd_bytes_n
call fcn.00401130
push dword [ebp - 0x318]
call fcn.0040ce20
add esp, 0x1c
cmp esi, 4
jb 0x4028da
cmp byte [ebp - 0x101], 0xa
jne 0x4028da
cmp byte [ebp - 0x102], 0xd
jne 0x4028da
movzx ecx, byte [ebp - 0x103]
xor edi, edi
movzx eax, byte [ebp - 0x104]
shl cx, 8
or cx, ax
movzx eax, cx
mov cx, word [0x4278d0]
mov dword [ebp - 0x310], eax
test cx, cx
je 0x4028da
movzx edx, cx
mov esi, 0x4278d4
nop dword [eax]
cmp ax, dx
jb 0x4028c4
cmp ax, word [esi - 2]
ja 0x4028c4
xor edx, edx
mov ecx, esi
call fcn.00401cc0
mov edi, eax
test edi, edi
jne 0x402cb3
mov eax, dword [ebp - 0x310]
movzx ecx, word [esi + 0x10]
add esi, 0x14
mov edx, ecx
test cx, cx
jne 0x4028a0
test edi, edi
jne 0x402cb3
mov eax, dword [0x427aa0]
mov esi, 0x427aa0
test eax, eax
je 0x40290c
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 4]
push eax
call fcn.0040da00
add esp, 0xc
test eax, eax
je 0x40290e
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x4028e8
jmp 0x402912
xor esi, esi
test esi, esi
jne 0x402938
lea eax, [ebp - 0x104]
push str.maybe_handle_shebang:_BOM_not_found__using_UTF_8_n
mov dword [ebp - 0x30c], eax
call fcn.00401130
add esp, 4
lea edx, [ebp - 0x104]
mov esi, 0x427aa0
jmp 0x402956
push dword [esi + 8]
push str.maybe_handle_shebang:_BOM_found__code_page__u_n
call fcn.00401130
lea edx, [ebp - 0x104]
add esp, 8
add edx, dword [esi]
mov dword [ebp - 0x30c], edx
lea ecx, [edx + 0x100]
mov edi, edx
cmp edx, ecx
jae 0x402971
mov al, byte [edi]
cmp al, 0xd
je 0x40298e
cmp al, 0xa
je 0x40298e
inc edi
cmp edi, ecx
jb 0x402962
push str.maybe_handle_shebang:_No_line_terminator_found_n
call fcn.00401130
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040374a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0x4b0
jne 0x40299b
inc edi
jmp 0x4029a5
cmp eax, 0x2ee0
jne 0x4029a5
add edi, 3
mov esi, edi
add edi, 1
je 0x402971
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x310], ecx
cmp eax, 0x2ee0
ja 0x402af4
je 0x402a86
sub eax, 0x4b0
je 0x402a48
sub eax, 1
jne 0x40297e
test cl, 1
je 0x4029f6
push ecx
push str.maybe_handle_shebang:_UTF_16BE__but_an_odd_number_of_bytes:__d_n
call fcn.00401130
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040374a
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x402b89
lea edi, [ebp - 0x308]
sub edi, dword [ebp - 0x30c]
lea edx, [ebp + ecx - 0x30a]
mov dword [ebp - 0x30c], edi
lea edi, [ecx - 1]
mov ecx, dword [ebp - 0x30c]
shr edi, 1
inc edi
movzx eax, byte [esi - 1]
lea esi, [esi - 2]
mov byte [ecx + esi + 2], al
lea edx, [edx - 2]
movzx eax, byte [esi + 2]
mov byte [edx + 2], al
sub edi, 1
jne 0x402a23
mov ecx, dword [ebp - 0x310]
jmp 0x402b89
push ecx
test cl, 1
je 0x402a6b
push str.UTF_16LE__but_an_odd_number_of_bytes:__d_n
call fcn.00401130
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040374a
mov esp, ebp
pop ebp
ret
push edx
lea eax, [ebp - 0x308]
push eax
call fcn.004055c0
mov ecx, dword [ebp - 0x310]
add esp, 0xc
jmp 0x402b89
mov eax, ecx
and eax, 0x80000003
jns 0x402a96
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x402ab6
push ecx
push str.UTF_32LE__but_not_divisible_by_4:__d_n
call fcn.00401130
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040374a
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x402b89
lea esi, [ecx - 1]
add edi, 0xfffffffc
shr esi, 2
lea edx, [ebp + eax - 0x30a]
inc esi
movzx eax, byte [edi + 1]
lea edi, [edi - 4]
mov byte [edx + 1], al
lea edx, [edx - 2]
movzx eax, byte [edi + 4]
mov byte [edx + 2], al
sub esi, 1
jne 0x402ad6
jmp 0x402b89
cmp eax, 0x2ee1
je 0x402b21
cmp eax, 0xfde9
jne 0x40297e
push pe_nt_image_headers32
lea esi, [ebp - 0x308]
push esi
push ecx
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
jmp 0x402b8b
mov eax, ecx
and eax, 0x80000003
jns 0x402b31
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x402b51
push ecx
push str.UTF_32BE__but_not_divisible_by_4:__d_n
call fcn.00401130
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.0040374a
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x402b89
lea edi, [ecx - 1]
shr edi, 2
lea edx, [ebp + eax - 0x30a]
inc edi
nop word [eax + eax]
movzx eax, byte [esi - 1]
lea esi, [esi - 4]
mov byte [edx + 1], al
lea edx, [edx - 2]
movzx eax, byte [esi + 4]
mov byte [edx + 2], al
sub edi, 1
jne 0x402b70
shr ecx, 1
test ecx, ecx
jle 0x40297e
dec ecx
lea eax, [ecx + ecx]
cmp eax, 0x202
jae 0x402cae
xor edx, edx
mov word [ebp + eax - 0x308], dx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x30c]
mov edx, ecx
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x308]
call fcn.00402530
mov esi, dword [ebp - 0x310]
add esp, 0xc
mov edi, eax
test esi, esi
je 0x40297e
push esi
push str.parse_shebang:_found_command:__ls_n
call fcn.00401130
add esp, 8
test edi, edi
je 0x402cd1
push 0x20
push esi
call fcn.00404395
mov edi, eax
add esp, 8
test edi, edi
je 0x402c17
xor eax, eax
lea ecx, [edi + 2]
mov word [edi], ax
call fcn.004010f0
mov edi, eax
push 6
push str.python
push esi
call fcn.0040e1a6
add esp, 0xc
test eax, eax
jne 0x402ce4
add esi, 0xc
cmp dword [ebp - 0x31c], eax
je 0x402c80
movzx eax, word [esi]
test ax, ax
je 0x402c4f
push eax
call fcn.0040dca0
add esp, 4
test eax, eax
je 0x402c80
push str.searching_PATH_for_python_executable_n
call fcn.00401130
add esp, 4
mov ecx, str.pythonw.exe
call fcn.00402190
test eax, eax
jne 0x402cf1
push str._not_found_
push str.Python_on_path:__ls_n
call fcn.00401130
add esp, 8
cmp word [esi], 0
je 0x402c95
mov ecx, esi
call fcn.00402730
test eax, eax
je 0x402d1f
mov edx, 1
mov ecx, esi
call fcn.00401cc0
test eax, eax
jne 0x402d39
jmp 0x402d2c
call fcn.0040387a
push edi
push str.script_file_is_compiled_against_Python__ls_n
call fcn.00401130
add esp, 8
lea ecx, [edi + 0x14]
xor edx, edx
push dword [ebp - 0x314]
call fcn.00402070
push dword [ebp - 0x314]
mov edx, dword [ebp - 0x30c]
mov ecx, esi
call fcn.00402070
push esi
push str.Unknown_virtual_path__ls
push 0x66
call fcn.00401180
lea esi, [eax + 0x208]
push esi
push str.Python_on_path:__ls_n
call fcn.00401130
push esi
push str.located_python_on_PATH:__ls_n
call fcn.00401130
add esp, 0x10
mov edx, edi
mov ecx, esi
push dword [ebp - 0x314]
call fcn.00402070
push esi
push str.Invalid_version_specification:__ls._nIn_the_first_line_of_the_script__python_needs_to_be_followed_by_a_valid_version_specifier._nPlease_check_the_documentation.
push 0x66
call fcn.00401180
push esi
push str.Requested_Python_version___ls__is_not_installed
push 0x67
call fcn.00401180
push dword [ebp - 0x314]
lea ecx, [eax + 0x14]
mov edx, edi
call fcn.00402070
int3