Function at 0x18005ae90
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd8
imul eax, r9d, 0xf0
mov ebx, r9d
mov r13, rdx
mov r15, rcx
mov esi, r9d
mov dword [rbp - 0x59], eax
cmp r9d, eax
ja 0x18005b4ab
mov r12, qword [rbp - 0x39]
xor edi, edi
mov r14, qword [rbp - 0x79]
nop word [rax + rax]
cmp esi, 0x145
ja 0x18005b483
je 0x18005b43b
mov eax, esi
sub eax, 0xd
je 0x18005b048
sub eax, 0x4b
je 0x18005b004
sub eax, 0x76
je 0x18005b53c
sub eax, 0xa
je 0x18005af68
cmp eax, 0x3a
jne 0x18005b520
test r15, r15
je 0x18005af58
movzx eax, byte [r15]
test al, al
je 0x18005af58
cmp al, 1
jne 0x18005af4b
lea rax, [r15 + 1]
mov qword [rbp - 0x69], rax
jmp 0x18005b520
mov rax, qword [r15 + 8]
mov qword [rbp - 0x69], rax
jmp 0x18005b520
mov rax, qword [0x1800c7780]
mov qword [rbp - 0x69], rax
jmp 0x18005b520
mov ebx, 0xa0
nop dword [rax]
mov eax, ebx
sub eax, 0xa0
je 0x18005af91
cmp eax, 0x66
jne 0x18005afe9
xor r8d, r8d
lea ecx, [rax - 0x11]
mov rdx, r15
call fcn.1800658e0
jmp 0x18005b4af
test r15, r15
je 0x18005b534
mov r8, qword [r15]
test r8, r8
je 0x18005b534
mov dword [rsp + 0x28], 0x3f
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
xor ecx, ecx
call fcn.180032330
test rax, rax
jne 0x18005afe9
mov rdx, qword [r15]
lea rax, [rbp - 0x79]
mov dword [rsp + 0x28], 0x50
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov qword [rbp - 0x79], rdi
call fcn.180005a60
add ebx, 0x66
cmp ebx, 0x16c
jb 0x18005af70
mov r8, qword [rbp + 0x6f]
mov ebx, dword [rbp + 0x77]
jmp 0x18005b520
test r15, r15
je 0x18005b56f
mov rdx, qword [r15]
test rdx, rdx
je 0x18005b560
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x58]
call fcn.18006b6d0
mov rcx, qword [r15]
xor r8d, r8d
mov edx, 0x114
mov qword [rbp - 0x39], rax
call fcn.1800246f0
mov r8, qword [rbp + 0x6f]
mov qword [rbp - 0x19], rax
jmp 0x18005b520
mov r14, rdi
mov qword [rbp - 0x79], rdi
cmp qword [rbp + 0x7f], rdi
je 0x18005b51d
cmp qword [r8], rdi
jbe 0x18005b51d
mov ebx, 0x12
nop word [rax + rax]
mov eax, ebx
sub eax, 0x12
je 0x18005b3a3
cmp eax, 1
jne 0x18005b420
mov rbx, qword [rbp - 0x51]
cmp r12, rbx
jae 0x18005b399
mov r15, qword [rbp - 0x41]
mov qword [rbp - 0x49], r15
jmp 0x18005b0a4
mov r15, qword [rbp - 0x41]
lea rax, [rbp - 0x31]
mov qword [rbp - 0x31], r12
mov qword [rsp + 0x38], rax
mov r9d, 0xf1
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov rsi, r12
mov r13, r14
call fcn.1800417d0
test al, al
jne 0x18005b0e9
lea rax, [r15 + r12]
cmp rax, rbx
jb 0x18005b0ef
mov r15, rbx
sub r15, r12
mov rax, qword [rbp + 0x67]
cmp byte [rax], dil
je 0x18005b26c
mov r14, qword [rbp + 0x5f]
mov r14, qword [r14]
test byte [r14], 1
je 0x18005b268
mov esi, 0xcc
cmp esi, 0xf3
ja 0x18005b1fc
je 0x18005b1ea
mov eax, esi
sub eax, 0x18
je 0x18005b1e3
sub eax, 0x2f
je 0x18005b1c5
sub eax, 0x2f
je 0x18005b257
sub eax, 0x4e
je 0x18005b17e
cmp eax, 8
jne 0x18005b23b
xor r8d, r8d
lea ecx, [rax + 0x65]
mov rdx, r14
call fcn.18003b7b0
mov r9, r14
xor edx, edx
xor ecx, ecx
mov r8d, 0x8f
mov rbx, rax
call fcn.18001ee50
sub rbx, rax
mov qword [rbp - 0x61], rbx
jmp 0x18005b23b
test r14, r14
je 0x18005b257
mov rax, qword [pe_dos_header]
lea r8, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp - 0x29], rax
xor edx, edx
mov ecx, 0x83
call fcn.180060bf0
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov r8d, 0x95
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov rcx, r14
call fcn.18000c470
jmp 0x18005b23b
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.18005ae90
mov qword [rbp - 0x61], rax
jmp 0x18005b23b
test r14, r14
je 0x18005b24c
jmp 0x18005b23b
mov rdx, 0xffffffffffffffff
lea rcx, [rbp - 0x21]
call fcn.180079f70
jmp 0x18005b23b
mov eax, esi
sub eax, 0xf9
je 0x18005b230
sub eax, 2
je 0x18005b257
sub eax, 0x11
je 0x18005b216
cmp eax, 0x2f
je 0x18005b257
jmp 0x18005b23b
xor r9d, r9d
mov rdx, r14
xor ecx, ecx
lea r8d, [r9 + 0x58]
call fcn.18006b6d0
test rax, rax
sete byte [rbp - 0x61]
jmp 0x18005b23b
mov rax, qword [pe_dos_header]
mov qword [r14], rax
add esi, 0x2f
cmp esi, 0x2a2
jb 0x18005b112
jmp 0x18005b257
mov rax, qword [0x1800c7780]
mov qword [rbp - 0x61], rax
mov rax, qword [rbp - 0x61]
mov rsi, r12
cmp r15, rax
cmovb rax, r15
mov r15, rax
mov r14, qword [rbp - 0x79]
mov rcx, qword [rbp + 0x5f]
lea rbx, [r15 + r12]
mov dword [rsp + 0x30], 0x159
lea rdx, [rbp - 0x71]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
xor ecx, ecx
mov qword [rbp - 0x71], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call fcn.180051b90
cmp rax, rbx
jb 0x18005b391
mov rbx, qword [rbp + 0x7f]
mov r14, r13
mov rcx, rbx
mov qword [rbp - 0x79], r13
mov r12, rsi
call fcn.18008940c
test eax, eax
jne 0x18005b391
mov rax, qword [rbp + 0x5f]
xor r8d, r8d
mov edx, 0x103
xor ecx, ecx
mov r9, qword [rax]
call fcn.180059950
mov r9, rbx
mov r8, r15
mov edx, 1
lea rcx, [rsi + rax]
call fcn.180089a50
mov qword [rbp - 0x79], r13
mov rbx, rax
test rax, rax
je 0x18005b391
mov rcx, qword [rbp + 0x7f]
mov qword [rbp - 0x79], r13
call fcn.180089438
mov r15, qword [rbp + 0x5f]
test eax, eax
jne 0x18005b395
mov r8, qword [r15]
lea r12, [rsi + rbx]
mov edx, 0xe6
mov qword [rbp - 0x71], r12
lea rcx, [rbp - 0x71]
call fcn.180071590
mov rax, qword [r15]
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov r8d, 0xa7
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x40], dil
call fcn.180049f50
mov r14, rbx
test r13, r13
js 0x18005b36f
lea r14, [rbx + r13]
mov rbx, qword [rbp - 0x51]
mov qword [rbp - 0x79], r14
cmp r12, rbx
jb 0x18005b0a0
mov r13, qword [rbp + 0x67]
mov ebx, 0x13
lea esi, [rbx - 6]
jmp 0x18005b420
mov r15, qword [rbp + 0x5f]
mov r13, qword [rbp + 0x67]
mov ebx, 0x13
lea esi, [rbx - 6]
jmp 0x18005b420
mov rdx, qword [r15]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x58]
call fcn.18006b6d0
cmp byte [r13], dil
mov r12, rdi
mov r9d, 0xf1
cmovne r12, rax
mov rax, qword [rbp + 0x6f]
xor r8d, r8d
mov qword [rbp - 0x71], r12
xor edx, edx
xor ecx, ecx
mov rax, qword [rax]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.1800417d0
test al, al
je 0x18005b40a
mov qword [rbp - 0x51], 0xffffffffffffffff
jmp 0x18005b418
mov rax, qword [rbp + 0x6f]
mov rax, qword [rax]
add rax, r12
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], 0x4000
inc ebx
cmp ebx, 0x14
jb 0x18005b070
mov r14, qword [rbp - 0x79]
mov r8, qword [rbp + 0x6f]
mov ebx, dword [rbp + 0x77]
jmp 0x18005b520
test r14, r14
jg 0x18005b520
cmp byte [r13], dil
je 0x18005b46b
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.18005ae90
mov r8, qword [rbp + 0x6f]
jmp 0x18005b520
mov r8, qword [r15]
mov edx, 0xc1
xor ecx, ecx
call fcn.1800502a0
mov r8, qword [rbp + 0x6f]
jmp 0x18005b520
cmp esi, 0x27d
je 0x18005b583
cmp esi, 0x898
je 0x18005b4c3
cmp esi, 0x10d8
je 0x18005b57b
cmp esi, 0x1ac2
jne 0x18005b520
mov rax, qword [rbp - 0x69]
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x19]
cmp qword [rbp - 0x39], rcx
jbe 0x18005b520
mov r8, qword [r15]
mov edx, 0xe6
mov qword [rbp - 0x71], rcx
lea rcx, [rbp - 0x71]
call fcn.180071590
mov rax, qword [r15]
lea rcx, [rbp - 1]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov r8d, 0xa7
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x40], dil
call fcn.180049f50
mov r8, qword [rbp + 0x6f]
jmp 0x18005b520
mov r14, rdi
lea eax, [rbx + rbx*2]
lea esi, [rsi + rax*8]
cmp esi, dword [rbp - 0x59]
jbe 0x18005aef0
jmp 0x18005b4ab
mov rax, rdi
jmp 0x18005b4af
mov r9d, 0x11d
mov dword [rbp + 0x77], 1
lea r8, [rbp + 0x77]
mov rdx, r15
mov rcx, r13
call fcn.180053810
mov dword [rbp - 0x69], eax
jmp 0x18005b4ab
mov rax, qword [0x1800c7780]
mov qword [r15], rax
jmp 0x18005b4af
mov rax, qword [0x1800c7780]
jmp 0x18005b4af
mov rax, qword [r15]
jmp 0x18005b4af
mov rax, r14
jmp 0x18005b4af