Function at 0x402e80
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 0x450aa0
push dword [ecx]
lea eax, [ebp - 0x318]
mov dword [ebp - 0x314], edx
push eax
call fcn.0042188f
add esp, 0xc
test eax, eax
jne 0x403020
push esi
push edi
push dword [ebp - 0x318]
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 1
push eax
call fcn.00424990
mov esi, eax
push esi
push str.maybe_handle_shebang:_read__zd_bytes_n
call fcn.00401220
push dword [ebp - 0x318]
call fcn.004219c2
add esp, 0x1c
cmp esi, 4
jb 0x402f7a
cmp byte [ebp - 0x101], 0xa
jne 0x402f7a
cmp byte [ebp - 0x102], 0xd
jne 0x402f7a
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 0x402f7a
movzx edx, cx
mov esi, 0x4548d4
nop dword [eax]
cmp ax, dx
jb 0x402f64
cmp ax, word [esi - 2]
ja 0x402f64
xor edx, edx
mov ecx, esi
call fcn.00402000
mov edi, eax
test edi, edi
jne 0x403353
mov eax, dword [ebp - 0x310]
movzx ecx, word [esi + 0x10]
add esi, 0x14
mov edx, ecx
test cx, cx
jne 0x402f40
test edi, edi
jne 0x403353
mov eax, dword [0x454a90]
mov esi, 0x454a90
test eax, eax
je 0x402fac
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 4]
push eax
call fcn.00422ec0
add esp, 0xc
test eax, eax
je 0x402fae
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x402f88
jmp 0x402fb2
xor esi, esi
test esi, esi
jne 0x402fd8
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, 0x454a90
jmp 0x402ff6
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 0x403011
mov al, byte [edi]
cmp al, 0xd
je 0x40302e
cmp al, 0xa
je 0x40302e
inc edi
cmp edi, ecx
jb 0x403002
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.00403ff2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0x4b0
jne 0x40303b
inc edi
jmp 0x403045
cmp eax, 0x2ee0
jne 0x403045
add edi, 3
mov esi, edi
add edi, 1
je 0x403011
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x310], ecx
cmp eax, 0x2ee0
ja 0x403194
je 0x403126
sub eax, 0x4b0
je 0x4030e8
sub eax, 1
jne 0x40301e
test cl, 1
je 0x403096
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.00403ff2
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x403229
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 0x4030c3
mov ecx, dword [ebp - 0x310]
jmp 0x403229
push ecx
test cl, 1
je 0x40310b
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.00403ff2
mov esp, ebp
pop ebp
ret
push edx
lea eax, [ebp - 0x308]
push eax
call fcn.0040d3a0
mov ecx, dword [ebp - 0x310]
add esp, 0xc
jmp 0x403229
mov eax, ecx
and eax, 0x80000003
jns 0x403136
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x403156
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.00403ff2
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x403229
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 0x403176
jmp 0x403229
cmp eax, 0x2ee1
je 0x4031c1
cmp eax, 0xfde9
jne 0x40301e
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 0x40322b
mov eax, ecx
and eax, 0x80000003
jns 0x4031d1
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x4031f1
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.00403ff2
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
jle 0x403229
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 0x403210
shr ecx, 1
test ecx, ecx
jle 0x40301e
dec ecx
lea eax, [ecx + ecx]
cmp eax, 0x202
jae 0x40334e
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.004029b0
mov esi, dword [ebp - 0x310]
add esp, 0xc
mov edi, eax
test esi, esi
je 0x40301e
push esi
push str.parse_shebang:_found_command:__ls_n
call fcn.00401220
add esp, 8
test edi, edi
je 0x403371
push 0x20
push esi
call fcn.00405085
mov edi, eax
add esp, 8
test edi, edi
je 0x4032b7
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.00424acb
add esp, 0xc
test eax, eax
jne 0x403384
add esi, 0xc
cmp dword [ebp - 0x31c], eax
je 0x403320
movzx eax, word [esi]
test ax, ax
je 0x4032ef
push eax
call fcn.00424450
add esp, 4
test eax, eax
je 0x403320
push str.searching_PATH_for_python_executable_n
call fcn.00401220
add esp, 4
mov ecx, str.pythonw.exe
call fcn.00402550
test eax, eax
jne 0x403391
push str._not_found_
push str.Python_on_path:__ls_n
call fcn.00401220
add esp, 8
cmp word [esi], 0
je 0x403335
mov ecx, esi
call fcn.00402c40
test eax, eax
je 0x4033bf
mov edx, 1
mov ecx, esi
call fcn.00402000
test eax, eax
jne 0x4033d9
jmp 0x4033cc
call fcn.00404124
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.00402390
push dword [ebp - 0x314]
mov edx, dword [ebp - 0x30c]
mov ecx, esi
call fcn.00402390
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.00402390
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.00402390
int3