Function at 0x402e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x450a48
push dword [ecx]
lea eax, [ebp - 0x318]
mov dword [ebp - 0x314], edx
push eax
call fcn.00421d7f
add esp, 0xc
test eax, eax
jne 0x403000
push esi
push edi
push dword [ebp - 0x318]
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 1
push eax
call fcn.00424de0
mov esi, eax
push esi
push str.maybe_handle_shebang:_read__zd_bytes_n
call fcn.00401220
push dword [ebp - 0x318]
call fcn.00421eb2
add esp, 0x1c
cmp esi, 4
jb 0x402f5a
cmp byte [ebp - 0x101], 0xa
jne 0x402f5a
cmp byte [ebp - 0x102], 0xd
jne 0x402f5a
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 [0x4548d0]
mov dword [ebp - 0x310], eax
test cx, cx
je 0x402f5a
movzx edx, cx
mov esi, 0x4548d4
lea esp, [esp]
cmp ax, dx
jb 0x402f44
cmp ax, word [esi - 2]
ja 0x402f44
xor edx, edx
mov ecx, esi
call fcn.00402010
mov edi, eax
test edi, edi
jne 0x403333
mov eax, dword [ebp - 0x310]
movzx ecx, word [esi + 0x10]
add esi, 0x14
mov edx, ecx
test cx, cx
jne 0x402f20
test edi, edi
jne 0x403333
mov eax, dword [0x454a80]
mov esi, 0x454a80
test eax, eax
je 0x402f8c
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 4]
push eax
call fcn.00423310
add esp, 0xc
test eax, eax
je 0x402f8e
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x402f68
jmp 0x402f92
xor esi, esi
test esi, esi
jne 0x402fb8
lea eax, [ebp - 0x104]
push str.maybe_handle_shebang:_BOM_not_found__using_UTF_8_n
mov dword [ebp - 0x30c], eax
call fcn.00401220
add esp, 4
lea edx, [ebp - 0x104]
mov esi, 0x454a80
jmp 0x402fd6
push dword [esi + 8]
push str.maybe_handle_shebang:_BOM_found__code_page__u_n
call fcn.00401220
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 0x402ff1
mov al, byte [edi]
cmp al, 0xd
je 0x40300e
cmp al, 0xa
je 0x40300e
inc edi
cmp edi, ecx
jb 0x402fe2
push str.maybe_handle_shebang:_No_line_terminator_found_n
call fcn.00401220
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404058
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0x4b0
jne 0x40301b
inc edi
jmp 0x403025
cmp eax, 0x2ee0
jne 0x403025
add edi, 3
mov esi, edi
add edi, 1
je 0x402ff1
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x310], ecx
cmp eax, 0x2ee0
ja 0x403174
je 0x403106
sub eax, 0x4b0
je 0x4030c8
sub eax, 1
jne 0x402ffe
test cl, 1
je 0x403076
push ecx
push str.maybe_handle_shebang:_UTF_16BE__but_an_odd_number_of_bytes:__d_n
call fcn.00401220
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404058
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x403209
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 0x4030a3
mov ecx, dword [ebp - 0x310]
jmp 0x403209
push ecx
test cl, 1
je 0x4030eb
push str.UTF_16LE__but_an_odd_number_of_bytes:__d_n
call fcn.00401220
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404058
mov esp, ebp
pop ebp
ret
push edx
lea eax, [ebp - 0x308]
push eax
call fcn.0040d8a0
mov ecx, dword [ebp - 0x310]
add esp, 0xc
jmp 0x403209
mov eax, ecx
and eax, 0x80000003
jns 0x403116
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x403136
push ecx
push str.UTF_32LE__but_not_divisible_by_4:__d_n
call fcn.00401220
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404058
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x403209
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 0x403156
jmp 0x403209
cmp eax, 0x2ee1
je 0x4031a1
cmp eax, 0xfde9
jne 0x402ffe
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 0x40320b
mov eax, ecx
and eax, 0x80000003
jns 0x4031b1
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x4031d1
push ecx
push str.UTF_32BE__but_not_divisible_by_4:__d_n
call fcn.00401220
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00404058
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x403209
lea edi, [ecx - 1]
shr edi, 2
lea edx, [ebp + eax - 0x30a]
inc edi
lea ebx, [ebx]
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 0x4031f0
shr ecx, 1
test ecx, ecx
jle 0x402ffe
dec ecx
lea eax, [ecx + ecx]
cmp eax, 0x202
jae 0x40332e
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.004029a0
mov esi, dword [ebp - 0x310]
add esp, 0xc
mov edi, eax
test esi, esi
je 0x402ffe
push esi
push str.parse_shebang:_found_command:__ls_n
call fcn.00401220
add esp, 8
test edi, edi
je 0x403351
push 0x20
push esi
call fcn.00405115
mov edi, eax
add esp, 8
test edi, edi
je 0x403297
xor eax, eax
lea ecx, [edi + 2]
mov word [edi], ax
call fcn.004011e0
mov edi, eax
push 6
push str.python
push esi
call fcn.00424f1b
add esp, 0xc
test eax, eax
jne 0x403364
add esi, 0xc
cmp dword [ebp - 0x31c], eax
je 0x403300
movzx eax, word [esi]
test ax, ax
je 0x4032cf
push eax
call fcn.004248a0
add esp, 4
test eax, eax
je 0x403300
push str.searching_PATH_for_python_executable_n
call fcn.00401220
add esp, 4
mov ecx, str.python.exe
call fcn.00402540
test eax, eax
jne 0x403371
push str._not_found_
push str.Python_on_path:__ls_n
call fcn.00401220
add esp, 8
cmp word [esi], 0
je 0x403315
mov ecx, esi
call fcn.00402c30
test eax, eax
je 0x40339f
mov edx, 1
mov ecx, esi
call fcn.00402010
test eax, eax
jne 0x4033b9
jmp 0x4033ac
call fcn.0040418b
push edi
push str.script_file_is_compiled_against_Python__ls_n
call fcn.00401220
add esp, 8
lea ecx, [edi + 0x14]
xor edx, edx
push dword [ebp - 0x314]
call fcn.00402380
push dword [ebp - 0x314]
mov edx, dword [ebp - 0x30c]
mov ecx, esi
call fcn.00402380
push esi
push str.Unknown_virtual_path__ls
push 0x66
call fcn.00401270
lea esi, [eax + 0x208]
push esi
push str.Python_on_path:__ls_n
call fcn.00401220
push esi
push str.located_python_on_PATH:__ls_n
call fcn.00401220
add esp, 0x10
mov edx, edi
mov ecx, esi
push dword [ebp - 0x314]
call fcn.00402380
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.00401270
push esi
push str.Requested_Python_version___ls__is_not_installed
push 0x67
call fcn.00401270
push dword [ebp - 0x314]
lea ecx, [eax + 0x14]
mov edx, edi
call fcn.00402380
int3