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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rsi, r8
mov qword [rsp + 0x70], r8
mov byte [rsp + 0x40], dl
mov r14, rcx
mov qword [r11 - 0x48], rcx
xor r12d, r12d
mov rbx, r12
lea ebp, [r12 + 7]
mov qword [r11 - 0x78], rbp
mov qword [r11 - 0x80], r12
mov word [r11 - 0x90], r12w
lea edi, [rbp + 1]
mov r8, rdi
lea rdx, [0x100004b90]
lea rcx, [r11 - 0x98]
call fcn.10002cf94
nop
mov qword [rsp + 0x128], rbp
mov qword [rsp + 0x120], r12
mov word [rsp + 0x110], r12w
mov r8, rdi
lea rdx, [0x100004ba8]
lea rcx, [rsp + 0x108]
call fcn.10002cf94
nop
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x170], r12
mov word [rsp + 0x160], r12w
lea r8d, [r12 + 1]
lea rdx, [0x100002d10]
lea rcx, [rsp + 0x158]
call fcn.10002cf94
nop
mov qword [rsp + 0x100], rbp
mov qword [rsp + 0xf8], r12
mov word [rsp + 0xe8], r12w
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [r14 + 0x20], rdi
jb 0x100044aa7
lea r15, [r14 + 8]
mov rcx, qword [r15]
jmp 0x100044aae
lea r15, [r14 + 8]
mov rcx, r15
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
or rax, 0xffffffffffffffff
cmp r13, rax
jne 0x100044aed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000450cd
lea r9, [rsp + 0xa0]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, r12d
jne 0x100044b15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000450c8
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, r12d
jne 0x100044b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000450c8
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, r12d
jne 0x100044b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000450c8
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
lea rdx, [0x100004bc0]
lea rcx, [rsp + 0xb8]
call fcn.10009e904
mov rdx, rax
movzx eax, word [rsp + 0x88]
movzx r9d, word [rsp + 0x8e]
movzx r8d, word [rsp + 0x8a]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call fcn.10009ee44
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], rdi
jb 0x100044be3
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x100044be3
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
lea rdx, [0x100004bd8]
lea rcx, [rsp + 0xb8]
call fcn.10009e904
mov rdx, rax
movzx eax, word [rsp + 0x94]
movzx r9d, word [rsp + 0x92]
movzx r8d, word [rsp + 0x90]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call fcn.10009ee44
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], rdi
jb 0x100044c71
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x100044c71
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x100044ca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebp, 7
jmp 0x1000450c8
mov r8d, eax
lea rdx, [0x100002e60]
lea rcx, [rsp + 0x48]
call fcn.10009ef30
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], rdi
jb 0x100044ce8
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x100044ce8
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
mov dword [rsp + 0x78], r12d
lea eax, [rbp + 2]
mov edi, eax
mov ecx, eax
call fcn.1000c865c
mov rsi, rax
cmp rax, r12
jne 0x100044d27
mov edi, 0xe
mov rsi, qword [rsp + 0x70]
lea ebp, [rdi - 7]
jmp 0x1000450c8
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea edi, [rbp + 1]
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000c865c
mov r12, rax
test rax, rax
jne 0x100044d74
mov rcx, rsi
call sub.msvcrt.dll_free
lea edi, [r12 + 0xe]
mov rsi, qword [rsp + 0x70]
lea ebp, [rdi - 7]
jmp 0x1000450c8
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000450a3
cmp dword [rsp + 0x78], ebp
jne 0x1000450a3
xor r8d, r8d
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
xor ebx, ebx
cmp eax, ebx
jne 0x100044e5b
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
mov r9d, ebp
mov r8, rsi
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.10002cf94
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], 8
jb 0x100044e45
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x100044e45
call sub.msvcrt.dll_free
mov edi, 7
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
jmp 0x100044ed4
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.10002cf94
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], 8
jb 0x100044ec0
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x100044ec0
call sub.msvcrt.dll_free
mov edi, 7
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
mov esi, pe_nt_image_headers64
mov rcx, rsi
call fcn.1000c85bc
mov rbx, rax
mov qword [rsp + 0x98], rax
xor r12d, r12d
cmp rax, r12
je 0x100044f7a
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r12
mov word [rax + 8], r12w
add rax, 0x28
mov qword [rsp + 0x80], rax
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r12
mov word [rax + 8], r12w
lea rax, [rbx + 0x50]
mov qword [rsp + 0x80], rax
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r12
mov word [rax + 8], r12w
lea rax, [rbx + 0x78]
mov qword [rsp + 0x80], rax
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r12
mov word [rax + 8], r12w
lea rax, [rbx + 0xa0]
mov qword [rsp + 0x80], rax
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r12
mov word [rax + 8], r12w
jmp 0x100044f7d
mov rbx, r12
cmp rbx, r12
jne 0x100044f94
mov edi, 0xe
mov rsi, qword [rsp + 0x70]
lea ebp, [rdi - 7]
jmp 0x1000450c8
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x48]
call fcn.10002cd2c
nop
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x48]
call fcn.100046144
mov edi, eax
cmp eax, r12d
jl 0x100045087
mov dword [rbx + 0xc8], ebp
mov r9, rsi
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.10002cd2c
lea rcx, [rbx + 0x78]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x130]
call fcn.10002cd2c
lea rcx, [rbx + 0xa0]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x108]
call fcn.10002cd2c
lea rcx, [rbx + 0x50]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0xe0]
call fcn.10002cd2c
mov r11b, byte [rsp + 0x40]
mov byte [rbx + 0xd0], r11b
mov byte [rbx + 0xd1], r12b
mov qword [rbx + 0xd8], r12
mov dword [rbx + 0xd4], r12d
mov dword [rbx + 0xcc], r12d
mov rsi, qword [rsp + 0x70]
mov ebp, 7
jmp 0x1000450c8
mov edx, 1
mov rcx, rbx
call fcn.10003c100
mov rbx, r12
mov rsi, qword [rsp + 0x70]
mov ebp, 7
jmp 0x1000450c8
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rsi, qword [rsp + 0x70]
xor r12d, r12d
lea ebp, [r12 + 7]
cmp r13, r12
je 0x1000450d6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, r12d
je 0x100045107
cmp edi, 0x4b8
jne 0x1000450fa
mov r8d, 0x111
mov rdx, rsi
lea rcx, [0x1001472e0]
call fcn.1000a3f50
jmp 0x100045107
mov r8, rsi
xor edx, edx
mov ecx, edi
call fcn.10004a060
nop
cmp qword [rsp + 0x100], 8
jb 0x100045124
mov rcx, qword [rsp + 0xe8]
cmp rcx, r12
je 0x100045124
call sub.msvcrt.dll_free
mov qword [rsp + 0x100], rbp
mov qword [rsp + 0xf8], r12
mov word [rsp + 0xe8], r12w
cmp qword [rsp + 0x178], 8
jb 0x10004515a
mov rcx, qword [rsp + 0x160]
cmp rcx, r12
je 0x10004515a
call sub.msvcrt.dll_free
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x170], r12
mov word [rsp + 0x160], r12w
cmp qword [rsp + 0x128], 8
jb 0x100045190
mov rcx, qword [rsp + 0x110]
cmp rcx, r12
je 0x100045190
call sub.msvcrt.dll_free
mov qword [rsp + 0x128], rbp
mov qword [rsp + 0x120], r12
mov word [rsp + 0x110], r12w
cmp qword [rsp + 0x150], 8
jb 0x1000451c6
mov rcx, qword [rsp + 0x138]
cmp rcx, r12
je 0x1000451c6
call sub.msvcrt.dll_free
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x148], r12
mov word [rsp + 0x138], r12w
cmp qword [r14 + 0x20], 8
jb 0x1000451f3
mov rcx, qword [r15]
cmp rcx, r12
je 0x1000451f3
call sub.msvcrt.dll_free
mov qword [r14 + 0x20], rbp
mov qword [r14 + 0x18], r12
mov word [r15], r12w
mov rax, rbx
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret