Function at 0x14003afc8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r12d, r12d
mov r13, rdx
mov qword [rax - 0x58], r12
xor r9d, r9d
mov qword [rdx], r12
mov ebx, r12d
mov dword [rax - 0x60], 0x80
mov edx, 0x80000000
lea r8d, [r12 + 1]
mov dword [rbp - 0xc], r12d
mov edi, r12d
mov dword [rbp - 0x10], r12d
mov dword [rax - 0x68], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0x80004005
mov r15d, 0x80070000
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14003b055
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b07d
mov ebx, esi
jmp 0x14003b355
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14003b07d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, esi
mov r15b, 1
test ebx, ebx
js 0x14003b346
cmp edi, 2
jbe 0x14003b18e
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], r12
mov r8d, 2
lea rdx, [rbp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b0ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, esi
cmp dword [rbp - 0x10], 2
cmovne ebx, esi
test ebx, ebx
js 0x14003b346
movzx eax, word [rbp + 0x48]
mov ecx, 0xfeff
cmp ax, cx
jne 0x14003b0f2
mov r15b, r12b
add edi, 0xfffffffe
jmp 0x14003b18e
cmp edi, 3
jbe 0x14003b15a
cmp ax, word [0x140049ce4]
jne 0x14003b15a
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], r12
mov r8d, 1
lea rdx, [rbp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b139
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, esi
cmp dword [rbp - 0x10], 1
cmovne ebx, esi
test ebx, ebx
js 0x14003b346
cmp byte [rbp + 0x58], 0xbf
jne 0x14003b15a
mov dword [rbp - 0xc], 0xfde9
add edi, 0xfffffffd
jmp 0x14003b18e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14003b18e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b346
mov ebx, esi
test ebx, ebx
js 0x14003b346
test r15b, r15b
je 0x14003b2c0
lea ecx, [rdi + 1]
call fcn.14003c310
test rax, rax
mov r12d, 0x8007000e
mov r15, rax
cmove ebx, r12d
test ebx, ebx
js 0x14003b346
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b1fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b2b3
mov ebx, esi
test ebx, ebx
js 0x14003b2b3
and dword [rsp + 0x28], 0
mov r8, r15
mov r9d, dword [rbp + 0x58]
xor edx, edx
mov ecx, dword [rbp - 0xc]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
cmp edi, 0x7ffffffe
ja 0x14003b236
lea ecx, [rdi + 1]
call fcn.14003a25c
xor edx, edx
jmp 0x14003b23a
xor edx, edx
mov eax, edx
test rax, rax
mov qword [r13], rax
cmove ebx, r12d
test ebx, ebx
js 0x14003b2b3
mov r9d, dword [rbp + 0x58]
mov r12d, edx
test r9d, r9d
je 0x14003b291
mov ecx, dword [rbp - 0xc]
mov r8, r15
mov dword [rsp + 0x28], edi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov r12d, eax
test eax, eax
jne 0x14003b291
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b2ab
mov ebx, esi
test ebx, ebx
js 0x14003b2ab
mov rax, qword [r13]
mov word [rax + rdi*2], dx
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14003b2b3
mov dword [rax], r12d
jmp 0x14003b2b3
mov rcx, r13
call fcn.14003a2fc
mov rcx, r15
call fcn.14003c2b8
jmp 0x14003b346
mov ecx, edi
shr ecx, 1
inc ecx
call fcn.14003a25c
xor r15d, r15d
mov qword [r13], rax
test rax, rax
mov r12d, 0x8007000e
cmove ebx, r12d
test ebx, ebx
js 0x14003b346
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b319
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b33e
mov ebx, esi
test ebx, ebx
js 0x14003b33e
mov ecx, dword [rbp + 0x58]
mov rax, qword [r13]
shr rcx, 1
mov word [rax + rcx*2], r15w
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14003b346
mov eax, dword [rbp + 0x58]
shr eax, 1
mov dword [rcx], eax
jmp 0x14003b346
mov rcx, r13
call fcn.14003a2fc
cmp r14, 0xffffffffffffffff
je 0x14003b355
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret