Function at 0x140117280
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140375828]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1404971c8], 0x2000
mov rdi, rcx
jg 0x140117345
mov ecx, dword [0x1404971c0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
mov r8d, dword [0x1404971c8]
mov rdx, qword [0x140497188]
mov ecx, dword [0x1404971c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov r9d, eax
mov dword [0x140497198], eax
movsxd rax, dword [0x1404971c8]
cmp r9d, eax
jne 0x140117366
mov r8, qword [0x140497188]
lea rdx, [r8 - 0x16]
add rdx, rax
mov qword [0x140497190], rdx
cmp rdx, r8
jb 0x140117366
mov ecx, dword [0x1403627d0]
nop dword [rax]
cmp byte [rdx], 0x50
jne 0x140117319
cmp dword [rdx], ecx
je 0x14011732a
dec rdx
mov qword [0x140497190], rdx
cmp rdx, r8
jae 0x140117310
jmp 0x140117366
mov eax, dword [0x140497188]
sub eax, dword [0x140497190]
add r9d, eax
mov dword [0x140497198], r9d
jmp 0x140117405
mov r8d, 0x12
lea rdx, [0x1403627d0]
call fcn.140118910
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x1401173f7
cmp dword [0x1403a70c4], 0
jne 0x140117378
cmp dword [0x1403a7090], 0
je 0x1401173af
mov r8, qword [0x1404971b8]
lea rdx, str.__s__n
lea rcx, [0x140487178]
call fcn.1400e1500
mov r8d, eax
lea rdx, [0x140487178]
mov r9d, 0x401
lea rcx, [0x1403a7080]
call qword [0x140497538]
lea rdx, str.__End_of_central_directory_signature_not_found.__Either_this_file_is_not_n__a_zipfile__or_it_constitutes_one_disk_of_a_multi_part_archive.__In_the_n__latter_case_the_central_directory_and_zipfile_comment_will_be_found_on_n__the_last_disk_s__of_this_archive._n
lea rcx, [0x140487178]
call fcn.1400e1500
mov r8d, eax
lea rdx, [0x140487178]
mov r9d, 0x401
lea rcx, [0x1403a7080]
call qword [0x140497538]
mov eax, 2
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401dd140
add rsp, 0x40
pop rdi
ret
mov rdx, qword [0x140497190]
mov r8, qword [0x140497188]
mov rax, qword [0x1404971d0]
lea rcx, [rsp + 0x20]
sub rax, r8
add rax, rdx
mov edx, 0x16
mov qword [0x1403a7130], rax
call fcn.14011e860
test eax, eax
jne 0x140117444
mov eax, 0x33
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401dd140
add rsp, 0x40
pop rdi
ret
lea rcx, [rsp + 0x24]
mov qword [rsp + 0x58], rbx
call fcn.14011e420
movzx eax, ax
lea rcx, [rsp + 0x26]
mov dword [0x140497270], eax
call fcn.14011e420
movzx eax, ax
lea rcx, [rsp + 0x28]
mov dword [0x140497274], eax
call fcn.14011e420
movzx eax, ax
lea rcx, [rsp + 0x2a]
mov qword [0x140497260], rax
call fcn.14011e420
movzx eax, ax
lea rcx, [rsp + 0x2c]
mov qword [0x140497268], rax
call fcn.14011e400
mov eax, eax
lea rcx, [rsp + 0x30]
mov qword [0x140497250], rax
call fcn.14011e400
mov eax, eax
lea rcx, [rsp + 0x34]
mov qword [0x140497258], rax
call fcn.14011e420
mov word [0x140497280], ax
call fcn.1401181d0
mov ebx, eax
cmp eax, 1
jg 0x140117513
lea rcx, [rdi + 0x4c]
call fcn.140117530
test eax, eax
je 0x1401174ee
cmp ebx, eax
cmovl ebx, eax
jmp 0x140117511
mov rcx, qword [0x140497250]
add rcx, qword [0x140497258]
cmp dword [0x1403a7090], 0
mov qword [0x1403a7138], rcx
je 0x140117511
call fcn.140118f30
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401dd140
add rsp, 0x40
pop rdi
ret