Function at 0x18005b9a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov ebx, dword [rbp + 0x77]
lea r14d, [r9 + 0xc]
mov dword [rbp - 0x29], r14d
mov r13, r8
mov r12d, r9d
mov r10, rdx
mov r8, rcx
mov esi, r9d
cmp r9d, r14d
jae 0x18005bd63
mov rax, qword [rbp - 1]
mov r9, qword [rbp + 7]
mov r8d, dword [rbp + 0x77]
mov edx, dword [rbp + 0x77]
mov r12, qword [rbp + 7]
mov edi, dword [rbp + 0x77]
mov r15d, dword [rbp + 0x77]
mov qword [rbp - 0x31], rax
mov rax, qword [rbp - 1]
mov qword [rbp - 0x41], rax
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x21], eax
mov dword [rbp - 0x39], r8d
mov qword [rbp - 9], rdx
mov qword [rbp - 0x11], r9
mov r11, qword [rbp + 0x7f]
lea eax, [rsi - 0x31]
lea rcx, [0x180000000]
cmp eax, 0x26
ja case.0x18005ba56.61
movzx eax, byte [rcx + rax + 0x5c124]
mov ecx, dword [rcx + rax*4 + 0x5c0f0]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov rax, qword [rbp + 0x5f]
mov r11, qword [rbp - 0x31]
mov edx, dword [rax]
mov rax, qword [r11 + 0x18]
lea rcx, [rdx + rdx*2]
cmp dword [rax + rcx*4], 0
je 0x18005ba74
mov edx, dword [rax + rcx*4 + 4]
mov dword [r10 + 4], edx
jmp 0x18005bd4b
cmp dword [r10], 0
jbe 0x18005bbe4
nop word [rax + rax]
mov r14d, 8
cmp r14d, 8
ja case.default.0x18005bab5
lea r11, [0x180000000]
mov eax, r14d
mov ecx, dword [r11 + rax*4 + 0x5c14c]
add rcx, r11
jmp rcx
sub dword [r10], edi
jmp case.default.0x18005bab5
mov rax, qword [r13]
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
xor r9d, r9d
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea edx, [rax + 0x61]
mov qword [rsp + 0x20], rax
call fcn.1800d0190
mov r15d, eax
test eax, eax
jne 0x18005bbd8
jmp 0x18005bba9
add r8d, edi
mov dword [rbp - 0x39], r8d
jmp case.default.0x18005bab5
mov edi, dword [r9 + 0x28]
xor edx, edx
mov rax, qword [r13]
mov rax, qword [rax + 0x98]
div rdi
mov qword [rbp - 9], rdx
sub edi, edx
jmp case.default.0x18005bab5
test r15d, r15d
jne 0x18005bbd8
jmp case.default.0x18005bab5
mov rax, qword [r13]
or dword [rax + 0x94], 0x4000
jmp case.default.0x18005bab5
mov esi, dword [r10]
lea r8, [rbp - 1]
cmp edi, esi
lea rcx, [rbp - 0x19]
cmovbe esi, edi
xor eax, eax
cmp esi, dword [r9 + 0x28]
mov r9d, 0x3b
sete al
xor edx, edx
mov dword [rbp - 0x19], eax
mov rax, qword [r13]
mov qword [rbp - 1], rax
call fcn.180091780
mov r15d, eax
mov edi, esi
jmp 0x18005bba9
mov rcx, qword [r13]
mov eax, edi
add qword [rcx + 0x98], rax
add r12, rax
jmp case.default.0x18005bab5
mov rax, qword [r13]
mov ecx, edx
mov rdx, r12
mov r8d, edi
add rcx, qword [rax + 0xb0]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 9]
mov r8d, dword [rbp - 0x39]
mov r9, qword [rbp - 0x11]
mov r10, qword [rbp + 0x67]
dec r14d
lea eax, [r14 + 0xb4]
cmp eax, 0xb3
ja 0x18005ba96
cmp dword [r10], 0
ja 0x18005ba90
mov r8d, dword [rbp - 0x39]
mov r9, qword [rbp - 0x11]
mov r14d, dword [rbp - 0x29]
mov esi, 0x42
jmp case.0x18005ba56.61
mov rax, qword [rbp - 0x41]
lea r8, [rbp - 0x19]
mov r9d, 0x20
mov dword [rbp - 0x19], eax
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.18006df70
test eax, eax
je 0x18005bc4c
mov edx, 0x9e
mov ecx, edx
sub ecx, 0x9e
je 0x18005bc3f
cmp ecx, 0x72
jne 0x18005bc41
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, eax
add edx, 0x72
cmp edx, 0x182
jb 0x18005bc13
mov r8d, dword [rbp - 0x39]
mov r9, qword [rbp - 0x11]
jmp case.0x18005ba56.61
mov rax, qword [r13]
mov r11, qword [rax + 0x18]
mov qword [rbp - 0x31], r11
jmp 0x18005bd4b
xor r15d, r15d
jmp case.0x18005ba56.61
test r11, r11
je 0x18005bc7a
mov dword [r11], r8d
mov ebx, r15d
jmp case.0x18005ba56.61
mov r11, qword [rbp - 0x31]
mov rcx, qword [rbp + 0x5f]
mov eax, dword [r11 + 4]
cmp dword [rcx], eax
jbe 0x18005bd4b
mov ecx, 0x82
nop dword [rax + rax]
mov eax, ecx
sub eax, 0x82
je 0x18005bcb4
cmp eax, 1
je 0x18005bc22
jmp 0x18005bcb9
mov ebx, 0x7f2bb747
inc ecx
cmp ecx, 0x84
jb 0x18005bca0
jmp 0x18005bd4b
mov ecx, dword [r13 + 0x50]
mov eax, dword [r13]
mov r11, qword [rbp - 0x31]
shl rcx, 3
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x21], eax
jmp 0x18005bd4f
mov rax, qword [r13]
mov r12, qword [rbp + 0x5f]
cmp dword [rax], 0x7f2bb70f
je case.0x18005ba56.61
mov eax, 0x7f2bb70f
jmp 0x18005bc24
xor r8d, r8d
mov dword [rbp - 0x39], r8d
jmp case.0x18005ba56.61
mov rax, qword [r13]
test byte [rax + 0x94], 1
jne case.0x18005ba56.61
mov ecx, 0xe3
mov eax, ecx
sub eax, 0xe3
je 0x18005bd2a
cmp eax, 1
je 0x18005bc22
jmp 0x18005bd2f
mov ebx, 0x7f2bb74d
inc ecx
cmp ecx, 0xe5
jb 0x18005bd16
jmp case.0x18005ba56.61
mov rax, qword [r13]
mov r9, qword [rax + 8]
mov qword [rbp - 0x11], r9
mov r11, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x41]
mov r10, qword [rbp + 0x67]
inc esi
cmp esi, r14d
jae 0x18005bd7d
mov rdx, qword [rbp - 9]
jmp 0x18005ba26
mov r11, qword [rbp - 1]
mov rcx, qword [rbp - 1]
mov r9d, dword [rbp + 0x77]
mov qword [rbp - 0x31], r11
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x21], r9d
jmp 0x18005bd89
mov r8, qword [rbp + 0x5f]
mov r12d, dword [rbp + 0x77]
mov r9d, dword [rbp - 0x21]
imul eax, r12d, 0x738
mov r15d, r12d
mov dword [rbp - 0x11], eax
cmp r12d, eax
ja 0x18005bc22
mov r14d, dword [rbp + 0x77]
mov r12, qword [rbp + 7]
nop word [rax + rax]
cmp r15d, 0x3031
ja 0x18005bf78
je 0x18005bf3f
cmp r15d, 0x31
je 0x18005bf24
cmp r15d, 0x3d
je 0x18005bc22
cmp r15d, 0x49
je 0x18005bfe1
cmp r15d, 0x55
je 0x18005be43
cmp r15d, 0x2059
jne 0x18005c0c6
cmp qword [rbp - 1], rcx
je 0x18005c0c6
mov edi, 0x111
mov eax, edi
sub eax, 0x111
je 0x18005be17
cmp eax, 0x77
je 0x18005bc22
jmp 0x18005be33
mov r9d, 0xe6
lea rdx, [rbp + 0xf]
xor r8d, r8d
xor ecx, ecx
call fcn.18008d780
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
add edi, 0x77
cmp edi, 0x1ff
jb 0x18005be03
jmp 0x18005c0c2
mov edx, dword [r8]
mov esi, edx
shl rsi, 4
add rsi, qword [r11 + 0x20]
cmp qword [rsi + 8], 0
je 0x18005c0c2
mov rax, qword [r11 + 0x18]
lea rcx, [rdx + rdx*2]
movzx ecx, word [rax + rcx*4 + 0xa]
cmp word [r10 + 0xa], cx
je 0x18005c0c2
mov edi, 0xcd
nop dword [rax + rax]
mov eax, edi
sub eax, 0xcb
je 0x18005bee0
sub eax, 1
je 0x18005be9e
cmp eax, 1
jne 0x18005bf11
movzx r12d, word [r10 + 0xa]
shl r12, 3
jmp 0x18005bf11
mov eax, dword [r8]
mov r9d, 0x96
lea r8, [rbp - 0x29]
mov dword [rbp - 0x19], r12d
lea rcx, [rax + rax*2]
mov rax, qword [r11 + 0x18]
movzx edx, word [rax + rcx*4 + 0xa]
lea rcx, [rbp - 0x19]
shl edx, 3
mov dword [rbp - 0x29], edx
lea rdx, [rsi + 8]
call fcn.18008cc10
mov r10, qword [rbp + 0x67]
mov r14d, eax
mov r8, qword [rbp + 0x5f]
mov r11, qword [rbp - 0x31]
jmp 0x18005bf11
test r14d, r14d
je 0x18005bf11
mov ecx, 0xcd
nop word [rax + rax]
mov eax, ecx
sub eax, 0xcd
je 0x18005bf04
cmp eax, 1
je 0x18005bc22
jmp 0x18005bf07
mov ebx, r14d
inc ecx
cmp ecx, 0xcf
jb 0x18005bef0
dec edi
cmp edi, 0xca
ja 0x18005be80
jmp 0x18005c0c2
mov rdx, qword [rbp + 0xf]
mov r8d, ecx
mov ecx, r9d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
mov qword [rbp - 1], rax
jmp 0x18005c0c2
mov eax, dword [r10]
lea rcx, [rbp + 7]
mov dword [rbp - 0x19], eax
xor r9d, r9d
mov eax, dword [r8]
mov edx, 0xa7
mov dword [rbp - 0x29], eax
lea r8, [rbp - 0x19]
mov rax, qword [r13]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call fcn.180081620
mov ebx, eax
jmp 0x18005c0c2
cmp r15d, 0x381d
je 0x18005c094
cmp r15d, 0x4081
je 0x18005c088
cmp r15d, 0x6019
je 0x18005bc22
cmp r15d, 0x60a9
je 0x18005bc22
cmp r15d, 0x6fe5
jne 0x18005c0c6
mov ecx, 0xa2
nop
mov eax, ecx
sub eax, 0xa2
je 0x18005bfd4
cmp eax, 0x18
je 0x18005bc22
jmp 0x18005bfd6
xor ebx, ebx
add ecx, 0x18
cmp ecx, 0xd2
jb 0x18005bfc0
mov rdx, qword [r13]
cmp dword [rdx], 0x7f2bb709
je 0x18005c016
mov ecx, 0xf8
mov eax, ecx
sub eax, 0xf8
je 0x18005c006
cmp eax, 0x26
je 0x18005bc22
jmp 0x18005c00b
mov ebx, 0x7f2bb709
add ecx, 0x26
cmp ecx, 0x144
jb 0x18005bff2
mov ecx, dword [r8]
cmp rcx, qword [rdx + 0x20]
jb 0x18005c030
mov eax, dword [r10]
dec eax
add eax, ecx
cmp rax, qword [rdx + 0x30]
jbe 0x18005c0c2
mov edi, 0xe4
cmp edi, 0xe4
je 0x18005c04c
cmp edi, 0x6114
jne 0x18005c078
xor eax, eax
jmp 0x18005bc24
mov rax, qword [r13]
lea rdx, [rbp - 9]
mov r9d, 1
mov rcx, qword [rax + 0x48]
mov eax, dword [r8]
lea r8, [rbp - 0x39]
mov dword [rbp - 9], eax
mov dword [rbp - 0x39], 0x7f2bb732
call fcn.180084320
mov r8, qword [rbp + 0x5f]
add edi, 0x6030
cmp edi, 0xc060
jbe 0x18005c035
jmp 0x18005c0c2
mov rax, qword [rbp + 0xf]
xor ebx, ebx
mov qword [r13 + 0x58], rax
jmp 0x18005c0c6
mov eax, dword [r8]
movsd xmm0, qword [r10]
lea rcx, [rax + rax*2]
mov rax, qword [r11 + 0x18]
movsd qword [rax + rcx*4], xmm0
lea rdx, [rax + rcx*4]
mov eax, dword [r10 + 8]
mov dword [rdx + 8], eax
mov edx, dword [r10 + 4]
mov rcx, qword [r11 + 0x10]
mov eax, dword [r8]
mov dword [rcx + rdx*4], eax
mov rcx, qword [rbp - 0x41]
imul eax, dword [rbp + 0x77], 0xa8
add r15d, eax
cmp r15d, dword [rbp - 0x11]
ja 0x18005bc22
mov r10, qword [rbp + 0x67]
mov r8, qword [rbp + 0x5f]
mov r11, qword [rbp - 0x31]
mov r9d, dword [rbp - 0x21]
jmp 0x18005bdb0