Function at 0x4024fe
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 + 0x70]
and dword [r9 + 0x20], 0
and word [r9 + 0x24], 0
mov rdi, r8
mov rbx, rdx
mov r15, 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.00431200
cmp dword [rsi], 1
movdqu xmm6, xmmword [rsi + 8]
je 0x402867
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], rdi
movq rbx, xmm6
mov rax, qword [0x0043eb88]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm7
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rbx
call fcn.004313d0
cmp dword [rsi], 1
mov rsi, qword [rsi + 8]
jne 0x4025f2
cmp sil, 3
jne 0x4025f0
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
call qword [rax]
mov rax, qword [rdi + 8]
cmp qword [rax + 8], 0
je 0x4025db
mov rcx, qword [rdi]
mov rdx, qword [rax + 0x10]
call fcn.0040ad40
mov rcx, qword [0x00446110]
xor esi, esi
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
jmp 0x4025f2
xor esi, esi
lea r8, [rsp + 0x70]
and qword [r8], 0
mov rcx, rbx
xor edx, edx
mov r9d, 1
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
je 0x402616
mov rax, qword [rsp + 0x70]
jmp 0x40261d
call sub.kernel32.dll_GetLastError
xor eax, eax
mov qword [rsp + 0x68], r15
cmp rsi, rax
ja 0x4029e0
lea rax, [rsp + 0x40]
mov r13, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rsi, [rsp + 0x70]
pxor xmm6, xmm6
mov qword [rsp + 0x30], r13
mov r12, r15
mov qword [rsp + 0xc8], r15
cmp r15, r13
jne 0x402662
mov rax, r13
sub rax, r12
cmp rax, 0x1f
jbe 0x4026d4
cmp r12, r13
jae 0x402678
mov qword [rsp + 0x50], r13
mov r12, r13
cmp r13, r15
jb 0x402a39
mov rdi, r12
sub rdi, r15
jb 0x402a2a
mov r14, qword [rsp + 0x40]
lea rdx, [r14 + r15]
and dword [rsp + 0x70], 0
mov eax, 0xffffffff
cmp rdi, rax
mov r8d, 0xffffffff
cmovb r8d, edi
and qword [rsp + 0x20], 0
mov rcx, rbx
mov r9, rsi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4026f6
call sub.kernel32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00433d80
cmp al, 0xb
je 0x40270b
cmp al, 0x23
je 0x402651
jmp 0x402824
mov r8d, 0x20
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.0041a390
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
jmp 0x402662
mov eax, dword [rsp + 0x70]
mov rcx, rax
shr rcx, 8
mov edx, eax
and edx, 0xffff0000
jmp 0x402711
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 0x4029fd
cmp rax, rdi
ja 0x402a4d
add r15, rax
cmp r15, r13
jne 0x402651
cmp r13, qword [rsp + 0x30]
jne 0x402651
movdqa xmmword [rsp + 0x80], xmm6
movdqa xmmword [rsp + 0x70], xmm6
lea rdi, [rsp + 0x3c]
and dword [rsp + 0x3c], 0
and qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x20
mov r9, rdi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x402798
call sub.kernel32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00433d80
cmp al, 0xb
je 0x4027ad
cmp al, 0x23
je 0x40275a
jmp 0x4029b9
mov eax, dword [rsp + 0x3c]
mov rdx, rax
shr rdx, 8
mov ecx, eax
and ecx, 0xffff0000
jmp 0x4027b3
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 0x402a19
cmp r15, 0x21
jae 0x402a67
mov rax, qword [rsp + 0x30]
sub rax, r12
cmp rax, r15
jb 0x402803
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 0x402651
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call fcn.0041a390
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x4027e0
shl rbp, 0x20
mov qword [rsp + 0x50], r15
mov sil, 1
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x68]
test r13, r13
je 0x402855
test r14, r14
je 0x402855
mov rcx, qword [0x00446110]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
movq xmm6, rbp
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
test sil, sil
je 0x4028cb
lea rsi, [rsp + 0x40]
movdqa xmmword [rsi], xmm6
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov rdx, rsi
call fcn.00401c51
mov dword [rdi + 0x18], 2
mov rcx, rsi
call fcn.00401d7c
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movups xmmword [r15 + 8], xmm0
movups xmmword [r15 + 0x18], xmm1
mov qword [r15], 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
mov rsi, qword [rsp + 0xd8]
mov rcx, rsi
call fcn.004384cc
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
mov rcx, rax
mov rdx, qword [rsp + 0xd0]
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x80], rsi
movdqu xmmword [rsp + 0x88], xmm6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
movq rdx, xmm6
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.00402ae8
cmp dword [rsi], 1
mov rax, qword [rsi + 8]
jne 0x402969
mov rcx, qword [rsp + 0x60]
mov qword [r15 + 0x20], rcx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r15 + 0x10], xmm0
mov qword [r15 + 8], rax
mov qword [r15], 1
lea rcx, [rsp + 0x70]
call fcn.00401dc7
jmp 0x4028a7
mov eax, dword [rax + 0x38]
mov qword [rsp + 0xa8], rax
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movups xmm2, xmmword [rsp + 0x90]
movups xmmword [r15 + 0x28], xmm2
movups xmmword [r15 + 0x18], xmm1
movups xmmword [r15 + 8], xmm0
mov rax, qword [rsp + 0xa0]
mov qword [r15 + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov qword [r15 + 0x40], rax
and qword [r15], 0
jmp 0x4028a7
shl rbp, 0x20
mov eax, 1
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x50], rcx
test rax, rax
setne sil
mov r15, qword [rsp + 0x68]
jne 0x40283a
jmp 0x402a0e
xor ecx, ecx
sub rsi, rax
cmovb rsi, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rsi
call fcn.0041a390
jmp 0x40262b
mov qword [rsp + 0x50], r15
xor esi, esi
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x68]
movdqa xmm6, xmmword [rsp + 0x40]
jmp 0x40285a
mov rbp, qword [rsp + 0x30]
sub rbp, qword [rsp + 0xc8]
xor eax, eax
jmp 0x4029c2
lea r8, [0x0043f798]
mov rcx, r15
mov rdx, r12
jmp 0x402a46
lea r8, [0x0043f780]
mov rcx, r15
mov rdx, r13
call fcn.0040c340
ud2
lea rcx, str.assertion_failed:_n___buf.len__f
lea r8, [0x0043f7d0]
mov edx, 0x20
call fcn.0040c8f0
ud2
lea r8, [0x0043f7e8]
mov edx, 0x20
mov rcx, r15
call fcn.0040c3c0
ud2