Function at 0x18002c030
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x278
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
mov r13, r8
mov r12, rdx
lea rcx, [rsp + 0x61]
xor ebx, ebx
xor edx, edx
mov r8d, 0x1ff
mov rdi, r9
mov byte [rsp + 0x60], bl
call fcn.18006cf60
cmp r12, 0xffffffffffffffff
je 0x18002c360
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002c146
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov r8d, 0x200
mov rcx, r12
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18002c132
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18002c0e2
cmp eax, 0x3e6
je 0x18002c0e2
test eax, eax
jle 0x18002c14d
movzx eax, ax
or eax, 0x80070000
jmp 0x18002c14b
lea rcx, [rsi + 0x10]
mov edx, 0x200
call fcn.180003da0
test eax, eax
js 0x18002c365
cmp eax, 1
je 0x18002c14b
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002c146
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
mov r8d, 0x200
call fcn.18006c2d0
cmp dword [rsp + 0x30], 0x200
je 0x18002c166
mov eax, 0xe00e1001
jmp 0x18002c365
call fcn.180003180
test eax, eax
js 0x18002c365
cmp eax, 1
je 0x18002c365
mov eax, 0xe00e1001
jmp 0x18002c365
cmp dword [rsp + 0xa0], 0xbeda107f
jne 0x18002c13c
mov ecx, dword [rsp + 0xa4]
mov eax, ecx
shr eax, 0x10
cmp eax, 1
je 0x18002c193
cmp ecx, 2
je 0x18002c193
mov eax, 0xe0034001
jmp 0x18002c365
test eax, eax
jne 0x18002c1e8
mov dword [rsi + 0x68], ebx
mov r8d, dword [rsp + 0xa8]
mov r9d, dword [rsi + 0x68]
cmp r9d, 1
jne 0x18002c239
cmp r8d, 0x180
jb 0x18002c1de
mov eax, dword [rsp + 0x1b4]
cmp eax, 0x1c8
jb 0x18002c1de
mov ecx, dword [rsp + 0x1e0]
lea rdx, [rax + rcx*4]
mov eax, dword [rsp + 0x1b8]
cmp rax, rdx
jae 0x18002c239
mov eax, 0xe0034000
jmp 0x18002c365
mov dword [rsi + 0x68], 1
cmp cx, 1
jne 0x18002c19a
mov r8d, dword [rsp + 0xa8]
cmp r8d, 0x190
jae 0x18002c1a2
mov r8d, 0x190
mov dword [rsp + 0x234], 0x200
mov dword [rsp + 0x228], ebx
mov dword [rsp + 0x22c], ebx
mov dword [rsp + 0x230], ebx
mov dword [rsp + 0xa8], r8d
jmp 0x18002c1a2
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
test r9d, r9d
jne 0x18002c274
cmp r8d, 1
jb 0x18002c1de
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0xa8]
mov r8, r13
mov rcx, rsi
call fcn.18002c4c0
jmp 0x18002c29a
cmp dword [rsp + 0xac], 1
jb 0x18002c1de
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0xa8]
mov r8, r13
mov rcx, rsi
call fcn.18002c5f0
test eax, eax
je 0x18002c1de
test rdi, rdi
je 0x18002c2b2
cmp qword [rdi], rbx
jne 0x18002c2b2
cmp qword [rdi + 8], rbx
je 0x18002c2e8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18002c2cc
test rdi, rdi
jne 0x18002c2d6
cmp qword [rcx], rbx
jne 0x18002c2cc
cmp qword [rcx + 8], rbx
je 0x18002c2e8
mov eax, 0xe0034002
jmp 0x18002c365
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x18002c2cc
mov rax, qword [rdi + 8]
cmp qword [rcx + 8], rax
jne 0x18002c2cc
cmp dword [rsi + 0x68], 1
jne 0x18002c335
lea rcx, [rdi + 0x10]
test rcx, rcx
je 0x18002c302
cmp qword [rcx], rbx
jne 0x18002c302
cmp qword [rcx + 8], rbx
je 0x18002c335
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x18002c32e
test rcx, rcx
jne 0x18002c31c
cmp qword [rdx], rbx
jne 0x18002c32e
cmp qword [rdx + 8], rbx
jmp 0x18002c32c
mov rax, qword [rcx]
cmp qword [rdx], rax
jne 0x18002c32e
mov rax, qword [rcx + 8]
cmp qword [rdx + 8], rax
je 0x18002c335
mov eax, 0xe0034003
jmp 0x18002c365
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x50]
mov qword [rdi + 8], rax
mov rax, qword [rcx]
mov qword [rdi + 0x10], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 0x18], rax
xor eax, eax
jmp 0x18002c365
mov eax, 0x80070057
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x278
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret