Function at 0x4026e5
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
lea r9, [rsp + 0x90]
and dword [r9 + 0x20], 0
and word [r9 + 0x24], 0
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
and dword [r9 + 0x14], 0
xorps xmm7, xmm7
movaps xmmword [r9], xmm7
mov qword [r9 + 0x18], 7
mov byte [r9 + 0x20], 1
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.0044efc0
cmp dword [rsi], 1
movdqu xmm6, xmmword [rsi + 8]
je 0x402a6c
mov qword [rsp + 0x88], rdi
movq rdi, xmm6
mov rax, qword [0x0047ab78]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm7
lea rsi, [rsp + 0x90]
mov rcx, rsi
mov rdx, rdi
call fcn.0044f190
cmp dword [rsi], 1
mov rsi, qword [rsi + 8]
jne 0x4027d7
cmp sil, 3
jne 0x4027d5
mov r14, qword [rsp + 0xa0]
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
call qword [rax]
mov rax, qword [r14 + 8]
cmp qword [rax + 8], 0
je 0x4027c0
mov rcx, qword [r14]
mov rdx, qword [rax + 0x10]
call fcn.0040a620
mov rcx, qword [0x00484110]
xor esi, esi
xor edx, edx
mov r8, r14
call fcn.004568c8
jmp 0x4027d7
xor esi, esi
lea r8, [rsp + 0x90]
and qword [r8], 0
mov rcx, rdi
xor edx, edx
mov r9d, 1
call sub.KERNEL32.dll_SetFilePointerEx
test eax, eax
je 0x402801
mov rax, qword [rsp + 0x90]
jmp 0x402808
call sub.KERNEL32.dll_GetLastError
xor eax, eax
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rbx
cmp rsi, rax
ja 0x402bc7
lea rax, [rsp + 0x40]
mov r13, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rsi, [rsp + 0x90]
pxor xmm6, xmm6
mov qword [rsp + 0x30], r13
mov r12, r15
mov qword [rsp + 0x80], r15
cmp r15, r13
jne 0x402855
mov rax, r13
sub rax, r12
cmp rax, 0x1f
jbe 0x4028ce
cmp r12, r13
jae 0x40286b
mov qword [rsp + 0x50], r13
mov r12, r13
cmp r13, r15
jb 0x402c25
mov rbx, r12
sub rbx, r15
jb 0x402c16
mov r14, qword [rsp + 0x40]
lea rdx, [r14 + r15]
and dword [rsp + 0x90], 0
mov eax, 0xffffffff
cmp rbx, rax
mov r8d, 0xffffffff
cmovb r8d, ebx
and qword [rsp + 0x20], 0
mov rcx, rdi
mov r9, rsi
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x4028f0
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00451b40
cmp al, 0xb
je 0x402908
cmp al, 0x23
je 0x402844
jmp 0x402a24
mov r8d, 0x20
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.00438150
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
jmp 0x402855
mov eax, dword [rsp + 0x90]
mov rcx, rax
shr rcx, 8
mov edx, eax
and edx, 0xffff0000
jmp 0x40290e
xor eax, eax
xor ecx, ecx
xor edx, edx
shl ecx, 8
movzx ecx, cx
or rcx, rdx
movzx eax, al
or rax, rcx
je 0x402be4
cmp rax, rbx
ja 0x402c39
add r15, rax
cmp r15, r13
jne 0x402844
cmp r13, qword [rsp + 0x30]
jne 0x402844
movdqa xmmword [rsp + 0xa0], xmm6
movdqa xmmword [rsp + 0x90], xmm6
lea rbx, [rsp + 0x3c]
and dword [rsp + 0x3c], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, 0x20
mov r9, rbx
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x402998
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00451b40
cmp al, 0xb
je 0x4029ad
cmp al, 0x23
je 0x40295a
jmp 0x402b9b
mov eax, dword [rsp + 0x3c]
mov rdx, rax
shr rdx, 8
mov ecx, eax
and ecx, 0xffff0000
jmp 0x4029b3
xor ecx, ecx
xor edx, edx
xor eax, eax
shl edx, 8
movzx edx, dx
or rdx, rcx
movzx r15d, al
or r15, rdx
je 0x402c05
cmp r15, 0x21
jae 0x402c53
mov rax, qword [rsp + 0x30]
sub rax, r12
cmp rax, r15
jb 0x402a03
add r14, r12
mov rcx, r14
mov rdx, rsi
mov r8, r15
call sub.msvcrt.dll_memcpy
add r12, r15
mov qword [rsp + 0x50], r12
add r15, qword [rsp + 0x30]
jmp 0x402844
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call fcn.00438150
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x4029e0
shl rbp, 0x20
mov qword [rsp + 0x50], r15
mov sil, 1
mov qword [rsp + 0x30], r15
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r13, r13
je 0x402a5a
test r14, r14
je 0x402a5a
mov rcx, qword [0x00484110]
xor edx, edx
mov r8, r14
call fcn.004568c8
movq xmm6, rbp
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
test sil, sil
je 0x402ad1
lea rsi, [rsp + 0x40]
movdqa xmmword [rsi], xmm6
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov rdx, rsi
call fcn.00401999
mov dword [rdi + 0x18], 2
mov rcx, rsi
call fcn.00401c15
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 8], xmm0
movups xmmword [rbx + 0x18], xmm1
mov qword [rbx], 1
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x90]
mov rcx, rsi
mov rdx, r15
mov r8, qword [rsp + 0x88]
call fcn.0042636e
movdqu xmmword [rsi + 0x18], xmm6
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movq rdx, xmm6
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.00402cf0
cmp dword [rsi], 1
mov rax, qword [rsi + 8]
jne 0x402b4b
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x20], rcx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 8], rax
mov qword [rbx], 1
lea rcx, [rsp + 0x90]
call fcn.00401c81
jmp 0x402aad
mov eax, dword [rax + 0x38]
mov qword [rsp + 0xc8], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmm1, xmmword [rsp + 0xa0]
movups xmm2, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0x28], xmm2
movups xmmword [rbx + 0x18], xmm1
movups xmmword [rbx + 8], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0x38], rax
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x40], rax
and qword [rbx], 0
jmp 0x402aad
shl rbp, 0x20
mov eax, 1
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x50], rcx
test rax, rax
setne sil
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
jne 0x402a3f
jmp 0x402bfa
xor ecx, ecx
sub rsi, rax
cmovb rsi, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rsi
call fcn.00438150
jmp 0x40281b
mov qword [rsp + 0x50], r15
xor esi, esi
mov qword [rsp + 0x30], r15
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
movdqa xmm6, xmmword [rsp + 0x40]
jmp 0x402a5f
mov rbp, qword [rsp + 0x30]
sub rbp, qword [rsp + 0x80]
xor eax, eax
jmp 0x402ba4
lea r8, [0x0047b788]
mov rcx, r15
mov rdx, r12
jmp 0x402c32
lea r8, [0x0047b770]
mov rcx, r15
mov rdx, r13
call fcn.0040bc50
ud2
lea rcx, str.assertion_failed:_n___buf.len__V
lea r8, [0x0047b7c0]
mov edx, 0x20
call fcn.0040c200
ud2
lea r8, [0x0047b7d8]
mov edx, 0x20
mov rcx, r15
call fcn.0040bcd0
ud2