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

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov rbx, rcx
mov dword [rbp + 0x44], edx
mov esi, r8d
mov dword [rbp + 0x68], 0xffffffff
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x58], 0x18
mov eax, dword [rbp + 0x44]
and eax, 3
cmp eax, 2
ja 0x43f8d7
mov eax, dword [rbp + 0x44]
and eax, 1
mov ecx, dword [rbp + 0x44]
and ecx, 8
test ecx, eax
je 0x43f8df
or eax, 0xffffffff
jmp 0x43fb34
mov eax, dword [rbp + 0x44]
test eax, 3
je 0x43f912
mov edi, 0x40000000
mov rcx, rbx
lea rdx, [0x0043fb44]
call fcn.0041cce0
test eax, eax
je 0x43f909
mov esi, 1
mov r13d, 2
jmp 0x43f91f
mov edi, 0x80000000
mov r13d, 3
mov eax, dword [rbp + 0x44]
cmp eax, 0x10a
jne 0x43f9cf
mov rcx, rbx
mov edx, edi
or edx, 0x80000000
mov r8d, esi
lea r9, [rbp + 0x58]
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x43fa2a
mov rcx, rbx
mov edx, edi
mov r8d, esi
lea r9, [rbp + 0x58]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x43fa2a
call sub.kernel32.dll_GetLastError_2
mov dword [0x0044bc30], eax
cmp dword [0x0044bc30], 0x6e
jne 0x43f9c7
mov dword [0x0044bc30], 2
or eax, 0xffffffff
jmp 0x43fb34
mov rcx, rbx
mov edx, edi
mov r8d, esi
lea r9, [rbp + 0x58]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x43fa2a
call sub.kernel32.dll_GetLastError_2
mov dword [0x0044bc30], eax
cmp dword [0x0044bc30], 0x6e
jne 0x43fa22
mov dword [0x0044bc30], 2
or eax, 0xffffffff
jmp 0x43fb34
mov rcx, qword [rbp + 0x48]
mov edx, 8
call sub.msvcrt.dll__open_osfhandle
mov ebx, eax
mov eax, dword [rbp + 0x44]
test eax, 8
je 0x43fb2b
mov ecx, ebx
call fcn.0042ac10
test eax, eax
jne 0x43fb2b
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x43fb2b
mov word [rbp + 0x7e], 0
mov dword [rbp + 0x74], 0xffffffff
mov rcx, qword [rbp + 0x48]
or edx, 0xffffffff
lea r8, [rbp + 0x74]
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov r13d, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x0044bc30], eax
cmp r13d, 0xffffffff
jne 0x43fabf
cmp dword [0x0044bc30], 0
je 0x43fabf
cmp ebx, 0xffffffff
je 0x43faba
mov ecx, ebx
call sub.msvcrt.dll__close
or eax, 0xffffffff
jmp 0x43fb34
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp + 0x7e]
mov r8d, 1
lea r9, [rbp + 0x78]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
mov r13d, eax
test r13d, r13d
jne 0x43fb06
mov dword [rbp + 0x74], 0
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
lea r8, [rbp + 0x74]
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
cmp word [rbp + 0x7e], 0x1a
jne 0x43fb2b
mov dword [rbp + 0x74], 0xffffffff
mov rcx, qword [rbp + 0x48]
or edx, 0xffffffff
lea r8, [rbp + 0x74]
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov ecx, ebx
call fcn.0043fce0
mov eax, ebx
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret