Function at 0x18006ea20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov r13, qword [rbp - 0x18]
lea r14d, [rcx + 0xd]
xor ebx, ebx
mov r9, rdx
mov r12d, ecx
mov esi, ecx
cmp ecx, r14d
jae 0x18006ec48
mov rax, qword [rbp - 0x18]
lea edi, [rcx - 0xd1]
mov ecx, dword [rbp + 0x48]
mov r12d, dword [rbp + 0x48]
mov r15, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x48]
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x48], ecx
lea rdx, [0x180000000]
cmp edi, 0x34
ja case.0x18006eaa5.13
movzx eax, byte [rdx + rdi + 0x6ef6c]
mov ecx, dword [rdx + rax*4 + 0x6ef34]
add rcx, rdx
jmp rcx
mov rax, qword [rbp + 0x68]
mov r12d, ebx
mov rax, qword [rax]
cmp dword [rax], 0x7f2bb705
je case.0x18006eaa5.13
mov dword [rbp - 0x30], 0x7f2bb705
jmp case.0x18006eaa5.11
cmp dword [r15], 0x7f2bb706
je case.0x18006eaa5.13
mov dword [rbp - 0x30], 0x7f2bb706
jmp case.0x18006eaa5.11
xor r9d, r9d
lea rdx, str.ws2_32.dll
lea r8d, [r9 + 0x5f]
lea ecx, [r9 + 8]
call fcn.18004c8a0
mov r13, rax
jmp case.0x18006eaa5.13
mov eax, 0xc6
nop word [rax + rax]
cmp eax, 0xc6
je 0x18006ebfc
add eax, 8
cmp eax, 0xce
jb 0x18006eb10
mov rax, qword [rbp + 0x68]
xor edx, edx
mov rcx, qword [rbp - 0x28]
mov rax, qword [rax]
mov r8d, dword [rax + 0x28]
call sub.VCRUNTIME140.dll_memset
jmp case.0x18006eaa5.13
mov rax, qword [rbp + 0x68]
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rax, qword [rax]
mov ecx, dword [rax + 0x28]
mov dword [rbp - 0x38], ecx
mov ecx, 0xac
call fcn.180098000
test eax, eax
jne 0x18006ec40
jmp case.0x18006eaa5.13
mov rax, qword [rbp + 0x68]
lea r9, [rbp - 0x18]
mov r8d, 0xba
lea rdx, [rbp - 0x40]
xor ecx, ecx
mov eax, dword [rax + 0x50]
shl rax, 3
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x40], eax
call fcn.1800756c0
mov edx, eax
mov dword [rbp - 0x40], eax
jmp 0x18006ebe7
mov rax, qword [rbp + 0x68]
mov edx, dword [rbp - 0x40]
mov ecx, dword [rax]
mov dword [rbp - 0x48], ecx
jmp 0x18006ebea
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov r15, qword [rax + 0x70]
jmp case.0x18006eaa5.13
cmp dword [r8], 0x400
jae case.0x18006eaa5.13
mov dword [rbp - 0x30], 0x7f2bb755
jmp case.0x18006eaa5.11
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x18006ebe0
mov rax, qword [rcx + 8]
mov rdx, r8
call qword [rax + 0x50]
mov r12d, eax
mov dword [rbp - 0x30], r12d
mov edx, dword [rbp - 0x40]
mov ecx, dword [rbp - 0x48]
inc esi
inc edi
cmp esi, r14d
jae 0x18006ec5e
mov r8, qword [rbp + 0x58]
jmp 0x18006ea83
mov rax, rbx
jmp 0x18006ef23
mov rax, qword [rbp + 0x60]
lea rdx, [rbp - 0x38]
mov r9, qword [rbp + 0x50]
mov ecx, 0xcf
mov eax, dword [rax]
mov dword [rbp + 0x48], eax
mov eax, dword [r8]
lea r8, [rbp + 0x48]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005f640
nop
mov dword [rbp - 0x30], eax
jmp case.0x18006eaa5.11
mov rdi, qword [rbp - 0x18]
mov edx, dword [rbp + 0x48]
mov ecx, dword [rbp + 0x48]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x40], edx
mov dword [rbp - 0x48], ecx
jmp 0x18006ec6a
mov r12d, dword [rbp + 0x48]
mov rdi, qword [rbp - 0x20]
mov r9, qword [rbp + 0x50]
imul r15d, r12d, 0x46b
mov esi, r12d
cmp r12d, r15d
ja case.0x18006eaa5.11
mov r14, qword [rbp + 0x68]
cmp esi, 0xe334
ja 0x18006edf3
je 0x18006eefa
cmp esi, 0x50c8
ja 0x18006edbe
je 0x18006ed91
mov eax, esi
sub eax, 0xde
je 0x18006ed61
sub eax, 0xd
je 0x18006ed22
cmp eax, 0x4b65
jne 0x18006ef08
mov rdx, qword [rbp - 0x18]
mov r8d, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
cmp rcx, rdi
je 0x18006ef02
mov edi, 0x11f
mov eax, edi
sub eax, 0x11f
je 0x18006ecf4
cmp eax, 2
je case.0x18006eaa5.11
jmp 0x18006ed12
xor r9d, r9d
lea rdx, [rbp - 0x18]
xor r8d, r8d
lea ecx, [r9 + 0x4a]
call fcn.180086260
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rbp - 0x30], ecx
add edi, 2
cmp edi, 0x123
jb 0x18006ece0
jmp 0x18006ef02
mov ecx, 0xc03b3998
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx], eax
mov rax, qword [rbp + 0x60]
test byte [rax], 1
je 0x18006ed4d
mov ecx, 3
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx + 4], eax
jmp 0x18006ef02
mov ecx, 4
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx + 4], eax
jmp 0x18006ef02
test edx, edx
je 0x18006ef08
mov ecx, 0x55
nop
mov eax, ecx
sub eax, 0x55
je 0x18006ed82
cmp eax, 1
je case.0x18006eaa5.11
jmp 0x18006ed85
mov dword [rbp - 0x30], edx
inc ecx
cmp ecx, 0x57
jb 0x18006ed70
jmp 0x18006ef05
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov ecx, dword [rax + 0x28]
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx + 0xc], eax
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax]
call r13
mov rcx, qword [rbp - 0x28]
mov r14, qword [rbp + 0x68]
mov dword [rcx + 0x10], eax
jmp 0x18006ef02
cmp esi, 0x97c2
je 0x18006ede6
cmp esi, 0xa0a5
jne 0x18006ef08
mov ecx, 1
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx + 0x40], eax
jmp 0x18006ef02
mov rax, qword [rbp - 0x18]
mov qword [r14 + 0x58], rax
jmp 0x18006ef08
cmp esi, 0x1903c
ja 0x18006eee1
je 0x18006ee64
cmp esi, 0xf082
je 0x18006ee50
cmp esi, 0x12ea6
je case.0x18006eaa5.11
cmp esi, 0x1405f
jne 0x18006ef08
mov ecx, 1
call r13
mov rcx, qword [rbp - 0x28]
mov r14, qword [rbp + 0x68]
mov dword [rcx + 0x18], eax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp - 0x28]
movups xmm0, xmmword [rcx + 0x68]
movups xmmword [rax + 0x30], xmm0
jmp 0x18006ef02
mov ecx, 1
call r13
mov rcx, qword [rbp - 0x28]
mov dword [rcx + 0x14], eax
jmp 0x18006ef02
mov rdx, qword [rbp + 0x68]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x20]
test byte [rcx + 0x60], 8
je 0x18006eeff
mov edi, 0x86
nop
cmp edi, 0x86
je 0x18006eec6
cmp edi, 0x118
jne 0x18006eecd
mov rax, qword [rdx]
cmp dword [rax + 0x28], 0x400
jne 0x18006eeb1
mov ecx, 3
call r13
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x68]
mov dword [rcx + 0x14], eax
jmp 0x18006eecd
mov ecx, 2
call r13
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x68]
mov dword [rcx + 0x14], eax
jmp 0x18006eecd
mov rax, qword [rbp - 0x28]
mov dword [rax + 0x40], ebx
add edi, 0x92
cmp edi, 0x1aa
jb 0x18006ee80
mov r14, qword [rbp + 0x68]
jmp 0x18006ef02
cmp esi, 0x1e019
je 0x18006eef3
cmp esi, 0x22ff6
je case.0x18006eaa5.11
jmp 0x18006ef08
mov rax, qword [rbp - 0x28]
mov qword [r9], rax
mov dword [rbp - 0x30], ebx
jmp 0x18006ef08
mov r14, rdx
mov edx, dword [rbp - 0x40]
mov ecx, dword [rbp - 0x48]
mov rdi, qword [rbp - 0x20]
mov r9, qword [rbp + 0x50]
imul eax, r12d, 0x57
add esi, eax
cmp esi, r15d
jbe 0x18006ec81
mov rax, qword [rbp - 0x30]
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret