Function at 0x455f50
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov dword [rsp + 0xc0], ecx
mov qword [rsp + 0xc8], rdx
call fcn.00453430
lea rdx, [0x0046bd82]
mov ecx, 2
call sub.msvcrt.dll_setlocale
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xc0]
call fcn.0044a210
mov ebx, dword [rsp + 0xc0]
lea rax, str._cmdline_
mov qword [0x00491f80], rax
mov rbp, qword [rsp + 0xc8]
cmp ebx, 1
jle 0x4560e8
mov r13, qword [0x0048c630]
lea rdi, [0x00457a40]
lea rsi, str.ADHINR:SVWacdeghi:lnp:rstuvw::x:z
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov ecx, ebx
call fcn.00455400
cmp eax, 0xffffffff
je 0x456502
cmp eax, 0x68
je 0x4561e0
jle 0x456060
cmp eax, 0x76
je 0x4564b5
jle 0x4560b0
cmp eax, 0x200
je 0x456290
jle 0x456130
cmp eax, 0x202
je 0x456490
jl 0x456480
cmp eax, 0x203
je 0x456451
cmp eax, 0x204
jne 0x4560da
mov rax, qword [0x0048c5a0]
mov dword [rax], 1
jmp 0x455fd3
cmp eax, 0x52
je 0x456302
jle 0x456100
cmp eax, 0x61
je 0x4561f0
jle 0x456153
cmp eax, 0x64
je 0x4564f3
jle 0x4561c0
cmp eax, 0x65
je 0x4564d0
cmp eax, 0x67
jne 0x4560da
mov dword [0x00492068], 1
jmp 0x455fd3
cmp eax, 0x72
je 0x456270
jg 0x456180
cmp eax, 0x6e
je 0x456420
cmp eax, 0x70
je 0x4563d5
cmp eax, 0x6c
je 0x456350
lea rcx, str.Invalid_option___c_n
mov edx, eax
call fcn.00448cd0
mov ecx, 2
call qword [fcn.00455bf0]
mov rcx, rax
call fcn.00409f30
nop dword [rax + rax]
cmp eax, 0x44
je 0x456280
jg 0x4561a0
cmp eax, 0x3f
je 0x4560e8
cmp eax, 0x41
je 0x4562c0
test eax, eax
je 0x455fd3
jmp 0x4560da
cmp eax, 0x78
je 0x456391
jl 0x456360
cmp eax, 0x7a
jne 0x4560da
mov dword [0x00492030], 1
jmp 0x455fd3
cmp eax, 0x56
je 0x456442
cmp eax, 0x57
je 0x456430
cmp eax, 0x53
jne 0x4560da
mov dword [0x0049206c], 1
jmp 0x455fd3
cmp eax, 0x74
je 0x4562e9
jle 0x4562d0
mov dword [0x0049205c], 1
jmp 0x455fd3
cmp eax, 0x49
jne 0x4562e0
mov dword [0x00492048], 1
jmp 0x455fd3
cmp eax, 0x63
jne 0x4560da
mov dword [0x00492038], 1
jmp 0x455fd3
mov dword [0x00492054], 1
jmp 0x455fd3
mov dword [0x00492078], 1
mov dword [0x00492070], 1
mov dword [0x0049205c], 1
mov dword [0x0049207c], 1
mov dword [0x00492054], 1
mov dword [0x0049206c], 1
mov dword [0x00492068], 1
mov dword [0x00492060], 1
mov dword [0x0049204c], 1
mov dword [0x00492048], 1
mov dword [0x00492040], 1
mov dword [0x0049203c], 1
jmp 0x455fd3
mov dword [0x00492070], 1
jmp 0x455fd3
mov dword [0x00492058], 1
jmp 0x455fd3
mov dword [0x00492050], 1
mov rcx, qword [r13]
test rcx, rcx
je 0x456703
mov dword [0x00492044], 0
call fcn.00448960
jmp 0x455fd3
mov dword [0x00492040], 1
jmp 0x455fd3
mov dword [0x00492078], 1
jmp 0x455fd3
cmp eax, 0x4e
jne 0x4568a3
mov dword [0x0049206c], 1
mov dword [0x00492064], 1
jmp 0x455fd3
mov r12, qword [0x0048c630]
lea rdx, [rsp + 0x40]
xor r8d, r8d
add dword [0x00492050], 1
mov rcx, qword [r12]
call sub.msvcrt.dll_strtoul
mov rcx, qword [rsp + 0x40]
cmp byte [rcx], 0
jne 0x456333
test eax, eax
jns 0x4567df
mov rcx, qword [r12]
mov edx, 0x10
call fcn.00409ec0
jmp 0x455fd3
mov dword [0x00492060], 1
jmp 0x455fd3
mov rax, qword [0x0048c630]
mov dword [0x00492050], 1
mov rcx, qword [rax]
test rcx, rcx
je 0x4567b2
mov dword [0x00492044], 0
call fcn.00448a40
jmp 0x455fd3
mov r12, qword [0x0048c630]
lea rdx, [rsp + 0x40]
xor r8d, r8d
add dword [0x00492050], 1
mov rcx, qword [r12]
call sub.msvcrt.dll_strtoul
mov rcx, qword [rsp + 0x40]
cmp byte [rcx], 0
jne 0x4563c2
test eax, eax
jns 0x4567c6
mov rcx, qword [r12]
mov edx, 1
call fcn.00409ec0
jmp 0x455fd3
mov r12, qword [0x0048c630]
lea rdx, [rsp + 0x40]
xor r8d, r8d
add dword [0x00492050], 1
mov rcx, qword [r12]
call sub.msvcrt.dll_strtoul
mov rcx, qword [rsp + 0x40]
cmp byte [rcx], 0
jne 0x456406
test eax, eax
jns 0x4567f8
mov rcx, qword [r12]
mov edx, 8
call fcn.00409ec0
jmp 0x455fd3
mov dword [0x0049203c], 1
jmp 0x455fd3
mov rax, qword [0x0048c590]
mov dword [rax], 1
jmp 0x455fd3
mov dword [0x0049204c], 1
jmp 0x455fd3
mov rax, qword [0x0048c630]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rax]
call sub.msvcrt.dll_strtoul
mov rdx, qword [0x0048c5c0]
mov dword [rdx], eax
jmp 0x455fd3
mov dword [0x00492074], 1
jmp 0x455fd3
mov rax, qword [0x0048c630]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rax]
call sub.msvcrt.dll_strtoul
mov rdx, qword [0x0048c5b0]
mov dword [rdx], eax
jmp 0x455fd3
mov rcx, qword [str.readelf]
call fcn.004312f0
jmp 0x455fd3
mov dword [0x00492054], 1
mov dword [0x0049206c], 1
mov dword [0x00492060], 1
jmp 0x455fd3
mov dword [0x0049207c], 1
jmp 0x455fd3
mov eax, dword [0x0049207c]
test eax, eax
jne 0x4565a0
cmp dword [0x00492078], 0
jne 0x4565a0
cmp dword [0x00492070], 0
jne 0x4565a0
cmp dword [0x0049205c], 0
jne 0x4565a0
cmp dword [0x0049206c], 0
jne 0x4565a0
cmp dword [0x00492060], 0
jne 0x4565a0
cmp dword [0x00492054], 0
jne 0x4565a0
cmp dword [0x00492050], 0
jne 0x4565a0
cmp dword [0x0049204c], 0
jne 0x4565a0
cmp dword [0x00492048], 0
jne 0x4565a0
cmp dword [0x00492044], 0
jne 0x4565a0
cmp dword [0x00492040], 0
jne 0x4565a0
cmp dword [0x0049203c], 0
jne 0x4565a0
cmp dword [0x00492068], 0
jne 0x4565a0
cmp dword [0x00492038], 0
jne 0x4565a0
cmp dword [0x00492074], 0
je 0x4560e8
nop
mov rsi, qword [0x0048c640]
mov edx, dword [rsp + 0xc0]
movsxd rax, dword [rsi]
lea ecx, [rdx - 1]
cmp ecx, eax
jg 0x456712
cmp edx, eax
jle 0x4568bf
xor edi, edi
mov rbp, qword [sym.imp.msvcrt.dll__stat64]
movabs r12, 0xa3e686372613c21
movabs r13, 0xa3e6e6968743c21
jmp 0x456601
lea rcx, str._s_is_not_an_ordinary_file_n
mov rdx, rbx
mov edi, 1
call fcn.00448cd0
movsxd rax, dword [rsi]
mov edx, dword [rsp + 0xc0]
cmp edx, eax
jle 0x456790
lea edx, [rax + 1]
mov dword [rsi], edx
mov rdx, qword [rsp + 0xc8]
mov rbx, qword [rdx + rax*8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call rbp
test eax, eax
js 0x456750
movzx eax, word [rsp + 0x46]
and ax, 0xf000
cmp ax, 0x8000
jne 0x4565e3
mov edx, 0x98
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov r14, rax
je 0x456811
mov qword [rax], rbx
lea rdx, [0x0046e96f]
mov rcx, rbx
call sub.msvcrt.dll_fopen
test rax, rax
mov qword [r14 + 8], rax
je 0x456858
lea rcx, [rsp + 0x38]
mov r9, rax
mov r8d, 1
mov edx, 8
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x456840
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], r12
mov qword [r14 + 0x10], rax
je 0x456721
cmp qword [rsp + 0x38], r13
je 0x45688d
cmp dword [0x00492038], 0
jne 0x456879
mov rcx, qword [r14 + 8]
call sub.msvcrt.dll_rewind
mov rcx, r14
mov dword [0x00492388], 0
mov dword [0x00492384], 0
call fcn.0042d140
mov rcx, qword [r14 + 8]
test eax, eax
jne 0x456737
call sub.msvcrt.dll_fclose
mov rcx, r14
mov edi, 1
call fcn.00455b00
jmp 0x4565f7
mov dword [0x00492044], 1
jmp 0x455fd3
mov dword [0x00492080], 1
jmp 0x4565c4
xor edx, edx
mov rcx, r14
call fcn.00430990
test eax, eax
je 0x45684f
mov rcx, qword [r14 + 8]
call sub.msvcrt.dll_fclose
mov rcx, r14
call fcn.00455b00
jmp 0x4565f7
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
cmp dword [rax], 2
je 0x456827
call rdi
mov edi, 1
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rcx, str.Could_not_locate__s.__System_error_message:__s_n
mov rdx, rbx
mov r8, rax
call fcn.00448cd0
jmp 0x4565f7
mov rcx, qword [0x00492008]
test rcx, rcx
je 0x4567a1
call fcn.00455b00
mov eax, edi
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [0x00492044], 1
call fcn.00448bf0
jmp 0x455fd3
lea rcx, [0x00491f80]
mov r8d, 1
mov edx, eax
call fcn.00409e20
jmp 0x455fd3
lea rcx, [0x00491f80]
mov r8d, 0x10
mov edx, eax
call fcn.00409e20
jmp 0x455fd3
lea rcx, [0x00491f80]
mov r8d, 8
mov edx, eax
call fcn.00409e20
jmp 0x455fd3
lea rcx, str.Out_of_memory_allocating_file_data_structure_n
mov edi, 1
call fcn.00448cd0
jmp 0x4565f7
lea rcx, str._s:_No_such_file_n
mov rdx, rbx
mov edi, 1
call fcn.00448cd0
jmp 0x4565f7
lea rcx, str._s:_Failed_to_read_files_magic_number_n
mov rdx, rbx
call fcn.00448cd0
mov rcx, qword [r14 + 8]
jmp 0x4566ec
lea rcx, str.Input_file__s_is_not_readable._n
mov rdx, rbx
mov edi, 1
call fcn.00448cd0
mov rcx, r14
call fcn.00455b00
jmp 0x4565f7
lea rcx, str.File__s_is_not_an_archive_so_its_index_cannot_be_displayed._n
mov rdx, rbx
call fcn.00448cd0
jmp 0x4566bf
mov edx, 1
mov rcx, r14
call fcn.00430990
test eax, eax
je 0x45684f
jmp 0x456733
cmp eax, 0x48
jne 0x4560da
mov ecx, 1
call qword [fcn.00455bf0]
mov rcx, rax
call fcn.00409f30
lea rcx, str.Nothing_to_do._n
call fcn.00449140
jmp 0x4560e8