Function at 0x14003b134
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 0x14003b1c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b1e9
mov ebx, esi
jmp 0x14003b4c1
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14003b1e9
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 0x14003b4b2
cmp edi, 2
jbe 0x14003b2fa
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 0x14003b236
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 0x14003b4b2
movzx eax, word [rbp + 0x48]
mov ecx, 0xfeff
cmp ax, cx
jne 0x14003b25e
mov r15b, r12b
add edi, 0xfffffffe
jmp 0x14003b2fa
cmp edi, 3
jbe 0x14003b2c6
cmp ax, word [0x140049ce4]
jne 0x14003b2c6
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 0x14003b2a5
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 0x14003b4b2
cmp byte [rbp + 0x58], 0xbf
jne 0x14003b2c6
mov dword [rbp - 0xc], 0xfde9
add edi, 0xfffffffd
jmp 0x14003b2fa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14003b2fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b4b2
mov ebx, esi
test ebx, ebx
js 0x14003b4b2
test r15b, r15b
je 0x14003b42c
lea ecx, [rdi + 1]
call fcn.14003c460
test rax, rax
mov r12d, 0x8007000e
mov r15, rax
cmove ebx, r12d
test ebx, ebx
js 0x14003b4b2
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 0x14003b366
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b41f
mov ebx, esi
test ebx, ebx
js 0x14003b41f
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 0x14003b3a2
lea ecx, [rdi + 1]
call fcn.14003a37c
xor edx, edx
jmp 0x14003b3a6
xor edx, edx
mov eax, edx
test rax, rax
mov qword [r13], rax
cmove ebx, r12d
test ebx, ebx
js 0x14003b41f
mov r9d, dword [rbp + 0x58]
mov r12d, edx
test r9d, r9d
je 0x14003b3fd
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 0x14003b3fd
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 0x14003b417
mov ebx, esi
test ebx, ebx
js 0x14003b417
mov rax, qword [r13]
mov word [rax + rdi*2], dx
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14003b41f
mov dword [rax], r12d
jmp 0x14003b41f
mov rcx, r13
call fcn.14003a41c
mov rcx, r15
call fcn.14003c408
jmp 0x14003b4b2
mov ecx, edi
shr ecx, 1
inc ecx
call fcn.14003a37c
xor r15d, r15d
mov qword [r13], rax
test rax, rax
mov r12d, 0x8007000e
cmove ebx, r12d
test ebx, ebx
js 0x14003b4b2
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 0x14003b485
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003b4aa
mov ebx, esi
test ebx, ebx
js 0x14003b4aa
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 0x14003b4b2
mov eax, dword [rbp + 0x58]
shr eax, 1
mov dword [rcx], eax
jmp 0x14003b4b2
mov rcx, r13
call fcn.14003a41c
cmp r14, 0xffffffffffffffff
je 0x14003b4c1
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