Function at 0x1800a0640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xb0
mov rax, qword [0x1800f6ae8]
xor rax, rsp
mov qword [rbp + 7], rax
mov ebx, dword [rbp + 0x6f]
mov r12, r9
mov r11, qword [rbp + 0x77]
mov r10, rcx
mov rdx, qword [rbp + 0x7f]
mov r9, r8
mov qword [rbp - 0x69], rcx
mov esi, ebx
lea r14d, [rbx - 0x10]
mov qword [rbp - 0x71], r8
mov qword [rbp - 0x61], r11
lea rcx, [0x180000000]
mov qword [rbp - 0x51], rdx
cmp ebx, r14d
jbe 0x1800a0869
mov r13, qword [rbp - 0x59]
lea edi, [rbx - 0xc3]
mov r15, qword [rbp - 0x59]
mov edx, 0xf30a
mov r8d, 0x74
nop dword [rax]
cmp edi, 0x24
ja case.default.0x1800a06e2
movzx eax, byte [rcx + rdi + 0xa0ba4]
mov ecx, dword [rcx + rax*4 + 0xa0b60]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov ecx, 0x81
nop dword [rax]
mov eax, ecx
sub eax, 0x80
je case.0x1800a06e2.11
cmp eax, 1
jne 0x1800a0708
xor eax, eax
mov dword [rsp + 0x20], eax
dec ecx
cmp ecx, 0x7f
ja 0x1800a06f0
mov r8d, 0xa
mov dword [rbp - 0x27], 0x73
lea rdx, [rbp - 0x25]
lea ecx, [r8 - 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltow]
mov r9, qword [rbp - 0x71]
mov r8d, 0x74
mov r10, qword [rbp - 0x69]
mov r11, qword [rbp - 0x61]
jmp 0x1800a0849
xor eax, eax
mov dword [rsp + 0x20], eax
jmp case.0x1800a06e2.16
mov word [rbp - 0x2f], 0x6e
jmp case.0x1800a06e2.16
cmp r13, qword [r12]
je case.0x1800a06e2.16
mov ebx, 0x10d
mov eax, ebx
sub eax, 0x10d
je 0x1800a077a
cmp eax, 1
je case.0x1800a06e2.11
jmp 0x1800a0786
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
inc ebx
cmp ebx, 0x10f
jb 0x1800a0766
jmp 0x1800a072a
mov r8d, dword [r12]
mov rdx, r9
mov ecx, dword [r10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd r13, eax
jmp 0x1800a072a
mov r15, r10
jmp case.0x1800a06e2.16
movzx eax, word [r15 + 4]
cmp word [r15 + 2], ax
ja 0x1800a07d6
mov dword [rbp - 0x7d], 0xc
jmp case.0x1800a06e2.16
mov dword [rbp - 0x29], 0x77
jmp case.0x1800a06e2.16
cmp word [r15], dx
je case.0x1800a06e2.16
mov eax, 0x7f2bb777
jmp 0x1800a0b39
movzx eax, word [0x1800deee0]
mov word [rbp - 0x31], ax
movzx eax, byte [0x1800deee2]
mov byte [rbp - 0x2f], al
jmp case.0x1800a06e2.16
mov dword [rbp - 0x2e], 0x63656e
jmp case.0x1800a06e2.16
mov word [rbp - 0x2b], r8w
jmp case.0x1800a06e2.16
cmp r13, qword [r12]
jne 0x1800a08b4
mov r8d, dword [r12]
mov rdx, r9
mov ecx, dword [r11]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
movsxd r13, eax
jmp 0x1800a072a
movsxd rcx, dword [rbp - 0x7d]
xor edx, edx
movsxd rax, dword [r11]
sub rax, 0xc
div rcx
movzx ecx, word [r15 + 4]
cmp ecx, eax
jg 0x1800a07d6
add eax, 0xfffffffe
cmp ecx, eax
jl 0x1800a07d6
mov edx, 0xf30a
lea rcx, [0x180000000]
dec esi
dec edi
cmp esi, r14d
ja 0x1800a06c0
mov ebx, dword [rbp + 0x6f]
mov rdx, qword [rbp - 0x51]
lea r13d, [rbx - 0xf]
mov dword [rbp - 0x7d], r13d
cmp ebx, r13d
jbe case.0x1800a06e2.11
movzx edi, byte [rbp - 0x79]
lea r12d, [rbx - 0xc9]
mov esi, dword [rbp - 0x7d]
mov r9d, 0x6c
mov r14, qword [rbp - 0x59]
lea r15d, [r9 - 0x3e]
cmp r12d, 0xe
ja case.default.0x1800a08b2
mov ecx, dword [rcx + r12*4 + 0xa0bcc]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
jmp 0x1800a0b39
mov rdx, r10
mov ecx, 0xa4
call fcn.1800b9bf0
test al, al
je 0x1800a0b25
mov eax, 2
mov word [rbp - 0x49], ax
mov r9d, 0x6c
jmp case.default.0x1800a08b2
mov dword [rbp + 1], 0x6c
jmp case.default.0x1800a08b2
mov r8d, 2
lea rdx, [0x1800deee8]
lea rcx, [rbp - 0x39]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r9d, 0x6c
jmp case.default.0x1800a08b2
mov rcx, qword [r10]
lea rdx, [rbp - 0x49]
mov r8d, 0x10
call qword [rbp - 0x71]
cmp eax, 0xffffffff
jne 0x1800a08df
mov r15d, 0x22
mov eax, r15d
sub eax, 0x1e
je case.0x1800a06e2.11
sub eax, 1
je 0x1800a097d
sub eax, 1
je 0x1800a096a
sub eax, 1
je 0x1800a095f
cmp eax, 1
jne 0x1800a09e0
movzx edi, al
jmp 0x1800a09e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
jmp 0x1800a09e0
xor eax, eax
mov ecx, eax
test r14, r14
movzx eax, dil
cmovne ecx, eax
movzx edi, cl
jmp 0x1800a09e0
test dil, dil
je 0x1800a09db
mov ebx, 0xfb
xor r13d, r13d
nop word [rax + rax]
mov eax, ebx
sub eax, 0xfb
je 0x1800a09c2
cmp eax, 1
jne 0x1800a09cd
cmp esi, 0x7fffffff
movzx eax, dil
mov ecx, r13d
cmovne ecx, eax
movzx edi, cl
test cl, cl
je 0x1800a09cd
mov edx, esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x1800a09cd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
inc ebx
cmp ebx, 0xfd
jb 0x1800a0990
mov r13d, dword [rbp - 0x7d]
mov byte [rsp + 0x20], 0
dec r15d
cmp r15d, 0x1d
ja 0x1800a0933
mov ebx, dword [rbp + 0x6f]
mov r9d, 0x6c
lea r15d, [r9 - 0x3e]
jmp case.default.0x1800a08b2
mov dword [rbp - 0xd], 0x5f0032
jmp case.default.0x1800a08b2
mov eax, dword [r11]
movzx ecx, word [rdx]
mov dword [rbp - 0x45], eax
call qword [rbp - 0x59]
mov word [rbp - 0x47], ax
mov r9d, 0x6c
jmp case.default.0x1800a08b2
lea r8, [rbp - 0x29]
mov ecx, 0x7f
lea rdx, [rbp - 0x31]
call fcn.1800c3a10
lea r8, [rbp - 0x11]
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x39]
mov ecx, 0x7f
call fcn.1800c3a10
mov qword [rbp - 0x59], rax
mov r9d, 0x6c
jmp case.default.0x1800a08b2
mov dword [rbp - 0x11], 0x730077
jmp case.default.0x1800a08b2
movzx eax, word [0x1800deeec]
lea rcx, [rbp - 0x39]
mov word [rbp - 0x37], ax
dec rcx
movzx eax, byte [0x1800deeee]
mov byte [rbp - 0x35], al
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1800a0a85
movzx eax, word [0x1800de2e0]
mov word [rcx], ax
jmp case.default.0x1800a08b2
mov r8d, 0xa
mov dword [rbp - 0x23], 0x5f
lea rdx, [rbp - 0x21]
lea ecx, [r8 + 0x16]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultow]
mov r9d, 0x6c
jmp case.default.0x1800a08b2
mov dword [rbp - 0x17], r9d
mov byte [rbp - 0x39], 0
jmp case.default.0x1800a08b2
mov dword [rbp - 3], 0x6c0064
jmp case.default.0x1800a08b2
mov r8d, 2
mov dword [rbp - 0x1d], r15d
lea rdx, [0x1800deef4]
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov r9d, 0x6c
jmp case.default.0x1800a08b2
mov dword [rbp - 9], 0x320033
mov word [rbp - 5], r15w
dec ebx
dec r12d
mov dword [rbp + 0x6f], ebx
cmp ebx, r13d
jbe case.0x1800a06e2.11
mov r10, qword [rbp - 0x69]
lea rcx, [0x180000000]
mov r11, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x51]
jmp 0x1800a0896
mov byte [rsp + 0x20], 0
jmp case.0x1800a06e2.11
mov byte [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800d1090
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret