Function at 0x18004fb00
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push r12
push r14
push r15
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2a8
mov rax, qword [0x180106b38]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, qword [rbp + 0x1f8]
lea eax, [r8 + 0x438]
mov qword [rsp + 0x60], r9
mov r12, rcx
mov rcx, qword [rbp + 0x1f0]
mov r15d, r8d
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x50], eax
cmp r8d, eax
jae 0x18005004b
mov qword [r11 + 0x18], rbx
mov rbx, qword [rsp + 0x58]
mov qword [r11 - 0x28], rsi
mov esi, dword [rsp + 0x50]
mov qword [r11 - 0x30], rdi
mov qword [r11 - 0x38], r13
mov r13d, dword [rsp + 0x50]
mov qword [rsp + 0x68], rsi
xor edi, edi
lea r8, [0x1800bb170]
lea r10, [0x180000000]
cmp r15d, 0xc6
ja 0x18004ff5a
je 0x18004feed
mov eax, r15d
sub eax, 8
je 0x18004fc4a
sub eax, 0x39
je 0x18004fc01
cmp eax, 0x7b
jne 0x180050020
mov rdi, qword [rsp + 0x298]
mov rax, rbx
mov rbx, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2a0]
mov r13, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800bfc40
add rsp, 0x2a8
pop r15
pop r14
pop r12
pop rbp
ret
mov rax, qword [rdx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, r12
mov rax, qword [rcx]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [r9]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0x67
call fcn.18001ebc0
mov rbx, rax
mov qword [rsp + 0x58], rax
jmp 0x180050020
mov eax, dword [r9]
add eax, 0xfffffffd
cmp eax, 0x1a
ja case.0x18004fc6f.8
cdqe
movzx eax, byte [r10 + rax + 0x50070]
mov ecx, dword [r10 + rax*4 + 0x50058]
add rcx, r10
jmp rcx
mov ebx, 0xff
mov eax, ebx
sub eax, 0xff
je 0x18004fc8a
cmp eax, 0x38
je case.0x18004fc6f.8
jmp 0x18004fcdf
mov eax, dword [r14 + 0xb8]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x28], 0x59
lea rcx, [rsp + 0x38]
mov r8, r14
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x40], rdi
call fcn.18008c510
lea r8, [0x1800bb170]
mov dword [r14 + 0xb8], 0x16
add ebx, 0x38
cmp ebx, 0x16f
jb 0x18004fc76
mov ebx, 0xb6
nop
cmp ebx, 0xb6
je 0x18004fd1b
cmp ebx, 0x8cc4
je 0x18004fd0e
cmp ebx, 0x118d2
je case.0x18004fc6f.8
jmp 0x18004fd5e
mov dword [r14 + 0xb8], 0x1d
jmp 0x18004fd5e
mov eax, dword [r14 + 0xb8]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x28], 0x59
lea rcx, [rsp + 0x38]
mov r8, r14
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], rdi
call fcn.18008c510
add ebx, 0x8c0e
lea r8, [0x1800bb170]
cmp ebx, 0x1a42a
jbe 0x18004fcf0
nop word [rax + rax]
mov eax, dword [r14 + 0xb8]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x28], 0x59
lea rcx, [rsp + 0x38]
mov r8, r14
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], rdi
call fcn.18008c510
mov byte [rsp + 0x58], 1
mov r15d, 8
mov rbx, qword [rsp + 0x58]
mov dword [r14 + 0xb8], 0x1b
jmp 0x180050020
mov eax, dword [r14 + 0xb8]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x28], 0x59
lea rcx, [rsp + 0x38]
mov r8, r14
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], rdi
call fcn.18008c510
mov byte [rsp + 0x58], 1
mov r15d, 8
mov rbx, qword [rsp + 0x58]
mov dword [r14 + 0xb8], 0x16
jmp 0x180050020
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, 0xda
mov rcx, r14
call fcn.180054a20
test al, al
je case.0x18004fc6f.8
mov rbx, qword [rsp + 0x60]
mov eax, dword [r14 + 0xb8]
cmp dword [rbx], eax
jne case.0x18004fc6f.8
mov qword [rsp + 0x28], r14
mov r9d, 0x11e
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call fcn.18005dea0
cmp dword [rbx], 0x1d
jne case.0x18004fc6f.8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, 0xda
mov rcx, r14
call fcn.180054a20
test al, al
jne case.0x18004fc6f.8
mov qword [rsp + 0x28], r14
mov r9d, 0x11e
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call fcn.18005dea0
mov byte [rsp + 0x58], 1
mov r15d, 8
mov rbx, qword [rsp + 0x58]
jmp 0x180050020
movzx eax, byte [r14]
mov esi, edi
test al, al
je 0x180050020
mov rdi, r14
nop
cmp al, 0x2f
jne 0x18004ff09
mov byte [rdi], 0x5c
jmp 0x18004ff0d
cmp al, 0x5c
jne 0x18004ff48
test esi, esi
jle 0x18004ff48
movzx eax, byte [rdi + 1]
cmp al, 0x5c
je 0x18004ff1d
cmp al, 0x2f
jne 0x18004ff48
movsxd rax, esi
lea rcx, [r14 + 1]
add rcx, rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x18004ff30
lea rdx, [r14 + 2]
add rdx, rax
call sub.VCRUNTIME140.dll_memmove
jmp 0x18004ff11
movzx eax, byte [rdi + 1]
inc rdi
inc esi
test al, al
jne 0x18004ff00
jmp 0x180050020
mov eax, r15d
sub eax, 0xf5
je 0x18004fbc0
cmp eax, 0x34
jne 0x180050020
cmp qword [r12], 0
jle 0x18005001a
nop dword [rax]
mov edi, 0x21
mov eax, edi
sub eax, 0x21
je 0x18004ffce
sub eax, 0x54
je 0x18004ffa6
cmp eax, 0x54
jne 0x180050000
movsxd rax, r13d
add qword [r14 + 0x4b0], rax
sub qword [r12], rax
jmp 0x180050000
movsxd rax, esi
lea rdx, [rbp - 0x80]
mov r9d, 0xd4
mov qword [rsp + 0x48], rax
mov r8, r14
lea rcx, [rsp + 0x48]
call fcn.180053d50
mov r13d, eax
cmp eax, esi
jne 0x18005001a
jmp 0x18004fffb
mov rax, qword [r12]
mov ecx, 0x200
cmp rax, rcx
mov edx, 1
cmovl ecx, eax
movsxd r8, ecx
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x68], rax
mov rsi, rax
test eax, eax
je 0x18005001a
mov r9, qword [rsp + 0x60]
add edi, 0x54
cmp edi, 0x11d
jb 0x18004ff85
cmp qword [r12], 0
jg 0x18004ff80
mov r15d, 0x129
add r15d, 0xb4
cmp r15d, dword [rsp + 0x50]
jae 0x18004fbc0
mov rsi, qword [rsp + 0x68]
mov r9, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
jmp 0x18004fb83
mov rax, qword [rsp + 0x58]
jmp 0x18004fbe3