Function at 0x180087070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x1800e5c38]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea edi, [rcx + 0x252]
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x44], edi
cmp ecx, edi
mov edi, dword [rsp + 0x48]
mov r12, rdx
mov qword [rsp + 0x70], r8
mov eax, ecx
mov dword [rsp + 0x50], ecx
jae 0x180087446
mov r13d, dword [rsp + 0x48]
mov r14d, dword [rsp + 0x48]
mov r15, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x44]
sub eax, 0x28
je 0x180087120
sub eax, 0x73
je 0x180087112
cmp eax, 0x53
jne 0x180087431
mov eax, 0xf4
nop dword [rax]
cmp eax, 0xf4
je 0x180087104
cmp eax, 0x7a0
je 0x180087446
jmp 0x180087106
xor edi, edi
add eax, 0x6ac
cmp eax, 0xd58
jbe 0x1800870f0
mov rcx, r12
call qword [0x1800eaa78]
jmp 0x180087428
test byte [r9], 1
je 0x1800871e8
mov esi, 0x38
nop
cmp esi, 0x38
je 0x180087175
cmp esi, 0xe0
je 0x180087163
cmp esi, 0x188
jne 0x1800871d1
mov rcx, qword [r12]
mov rax, qword [rcx + 0x20]
mov r13d, dword [rcx + 0x30]
mov r14d, dword [rax + 0x28]
imul r13d, r14d
shr r14d, 3
jmp 0x1800871d1
mov rax, qword [r12]
mov dword [rsp + 0x40], 1
mov r15, qword [rax + 0x48]
jmp 0x1800871d1
mov rax, qword [r12]
cmp qword [rax + 0x48], 0
jne 0x1800871d1
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x48]
lea ecx, [r9 + 0x4b]
call fcn.18008e670
test eax, eax
je 0x1800871d1
mov edx, 0xe9
nop dword [rax + rax]
mov ecx, edx
sub ecx, 0xe9
je 0x1800871c5
cmp ecx, 1
je 0x180087446
jmp 0x1800871c7
mov edi, eax
inc edx
cmp edx, 0xeb
jb 0x1800871b0
add esi, 0xa8
cmp esi, 0x230
jb 0x180087130
jmp 0x180087296
mov esi, 0xfd
nop dword [rax]
mov eax, esi
sub eax, 0xfd
je 0x180087233
sub eax, 0x29
je 0x180087219
cmp eax, 0x29
jne 0x180087287
mov rax, qword [r12]
mov rcx, qword [rax + 0x20]
mov r14d, dword [rcx + 0x20]
shr r14d, 3
jmp 0x180087287
mov rcx, qword [r12]
mov rax, qword [rcx + 0x20]
mov r13d, dword [rax + 0x20]
mov edx, dword [rax + 0x14]
imul r13d, dword [rcx + 0x30]
mov dword [rsp + 0x40], edx
jmp 0x180087287
mov rax, qword [r12]
cmp qword [rax + 0x50], 0
jne 0x18008727f
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea edx, [r8 + 0x2c]
call fcn.1800937f0
test eax, eax
je 0x18008727f
mov edx, 0x59
nop dword [rax]
mov ecx, edx
sub ecx, 0x59
je 0x180087272
cmp ecx, 0x35
je 0x180087446
jmp 0x180087274
mov edi, eax
add edx, 0x35
cmp edx, 0xc3
jb 0x180087260
mov rax, qword [r12]
mov r15, qword [rax + 0x50]
add esi, 0x29
cmp esi, 0x178
jb 0x1800871f0
test r13d, r13d
je 0x180087428
nop
mov ebp, 0x5d
mov esi, 5
nop word [rax + rax]
cmp esi, 5
ja case.default.0x1800872cc
lea rdx, [0x180000000]
mov eax, esi
mov ecx, dword [rdx + rax*4 + 0x87474]
add rcx, rdx
jmp rcx
movsxd rax, r14d
cmp qword [rsp + 0x60], rax
je case.default.0x1800872cc
mov ecx, 0x33
mov eax, ecx
sub eax, 0x33
je 0x1800872f3
cmp eax, 0x51
je 0x180087446
jmp 0x1800872f8
mov edi, 0x7f2bb724
add ecx, 0x51
cmp ecx, 0xd5
jb 0x1800872e1
jmp case.default.0x1800872cc
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov r8d, r14d
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
mov qword [rsp + 0x60], rax
jmp case.default.0x1800872cc
mov eax, r13d
mov r14d, 0x400
shr eax, 3
cmp eax, r14d
jae case.default.0x1800872cc
mov r14d, eax
jmp case.default.0x1800872cc
lea eax, [r14*8]
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x68]
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xor edx, edx
lea rax, [rsp + 0x78]
mov ecx, 0x130
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1800ba440
test eax, eax
je case.default.0x1800872cc
mov ecx, 0x5f
cmp ecx, 0x5f
je 0x1800873b5
cmp ecx, 0x10d
je 0x180087446
jmp 0x1800873b7
mov edi, eax
add ecx, 0xae
cmp ecx, 0x1bb
jb 0x1800873a2
jmp case.default.0x1800872cc
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne case.default.0x1800872cc
mov ebx, 0x70
cmp ebx, 0x70
je 0x1800873e3
cmp ebx, 0xa10
je 0x180087446
jmp 0x1800873eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
add ebx, 0x9a0
cmp ebx, 0x1340
jbe 0x1800873d4
jmp case.default.0x1800872cc
mov eax, dword [rsp + 0x40]
lea eax, [rax + r14*8]
mov dword [rsp + 0x40], eax
lea eax, [r14*8]
sub r13d, eax
dec ebp
dec esi
cmp ebp, 0x57
ja 0x1800872b0
test r13d, r13d
jne 0x1800872a0
mov ecx, dword [rsp + 0x44]
mov r9, qword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
add eax, 0xc6
mov dword [rsp + 0x50], eax
cmp eax, ecx
jb 0x1800870d5
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800d0500
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret