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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xb0
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x88
add rcx, 0x2d8
xor edx, edx
call sub.msvcrt.dll_memset
xor r13d, r13d
xor edx, edx
mov rcx, rbx
mov ebp, r13d
call fcn.1400131dc
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x14001cd88
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rdi + 0x48]
cmp eax, edx
mov esi, eax
jl 0x14001c996
add edx, dword [rdi + 0x4c]
cmp edx, eax
jle 0x14001c986
lea rcx, [rdi + 0x40]
call fcn.140010ac0
mov rdx, qword [rdi + 0x40]
lea r9, [rsp + 0xe0]
mov r8d, esi
mov rcx, r12
mov dword [rsp + 0xe0], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rdi + 0x40]
lea r8, [rdi + 0x2d0]
lea rcx, [rsp + 0x40]
mov edx, InitCommonControls
mov qword [rsp + 0x48], r11
mov qword [rdi + 0x350], r11
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x50], r13d
mov dword [rdi + 0x358], esi
call fcn.1400109f0
mov r11d, dword [rsp + 0x50]
lea eax, [r11 + 4]
lea r8, [rdi + 0x2e0]
lea rcx, [rsp + 0x40]
cmp eax, dword [rsp + 0x40]
mov edx, 8
cmovbe r11d, eax
mov dword [rsp + 0x50], r11d
call fcn.1400109f0
mov r11d, dword [rsp + 0x50]
lea eax, [r11 + 4]
lea r8, [rdi + 0x2e8]
lea rdx, [rdi + 0x2f0]
cmp eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x40]
cmovbe r11d, eax
lea eax, [r11 + 4]
cmp eax, dword [rsp + 0x40]
cmovbe r11d, eax
mov dword [rsp + 0x50], r11d
call fcn.140011310
mov r12d, 4
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
mov edx, r12d
mov dword [rsp + 0xe0], r13d
call fcn.1400109f0
mov eax, 0xaaaaaaab
mul dword [rsp + 0xe0]
shr edx, 3
mov ebx, r13d
je 0x14001cd88
mov esi, edx
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
mov edx, r12d
mov dword [rsp + 0xe0], r13d
mov dword [rsp + 0xf0], r13d
mov dword [rsp + 0xf8], r13d
call fcn.1400109f0
lea r8, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov edx, r12d
call fcn.1400109f0
lea r8, [rsp + 0xf8]
lea rcx, [rsp + 0x40]
mov edx, r12d
call fcn.1400109f0
cmp dword [rsp + 0xe0], 3
cmove ebx, dword [rsp + 0xf0]
sub rsi, 1
jne 0x14001ca9c
cmp ebx, r13d
jbe 0x14001cd88
lea eax, [rbx + 8]
lea r8, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
cmp eax, dword [rsp + 0x40]
mov edx, r12d
mov dword [rsp + 0xf0], r13d
cmovbe ebx, eax
mov dword [rsp + 0x50], ebx
call fcn.1400109f0
mov r11d, dword [rsp + 0xf0]
cmp r11d, 7
mov dword [rdi + 0x308], r11d
jne 0x14001cb65
mov eax, dword [rsp + 0x50]
add eax, 0x1e
cmp eax, dword [rsp + 0x40]
ja 0x14001cb77
mov dword [rsp + 0x50], eax
jmp 0x14001cb77
mov ecx, dword [rsp + 0x50]
lea eax, [rcx + 0xa]
cmp eax, dword [rsp + 0x40]
cmovbe ecx, eax
mov dword [rsp + 0x50], ecx
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
mov edx, r12d
mov dword [rsp + 0xe0], r13d
mov dword [rsp + 0xf0], r13d
call fcn.1400109f0
mov r11d, dword [rsp + 0x50]
lea r8, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
lea eax, [r11 + 1]
mov edx, r12d
cmp eax, dword [rsp + 0x40]
cmovbe r11d, eax
mov dword [rsp + 0x50], r11d
call fcn.1400109f0
mov r11d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xe0]
lea eax, [r11 + 0x10]
mov rbx, r11
add rbx, qword [rsp + 0x48]
add ecx, 0xfffffffb
mov dword [rdi + 0x304], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0xe0], ecx
cmp eax, r11d
jbe 0x14001cbfd
sub eax, r11d
jmp 0x14001cc00
mov eax, r13d
cmp eax, ecx
jb 0x14001cd7e
lea r12, [0x140026580]
lea rdx, [rsp + 0xf8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], 0xf0000000
mov qword [rsp + 0xf8], r13
mov dword [rsp + 0x20], 0x18
call fcn.1400188e8
cmp eax, r13d
je 0x14001cd7e
mov r8d, 0x20
lea rcx, [rsp + 0x6c]
mov rdx, rdi
mov byte [rsp + 0x60], 8
mov dword [rsp + 0x64], 0x6610
mov byte [rsp + 0x61], 2
mov dword [rsp + 0x68], r8d
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0xf8]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x60]
mov r9d, 0x2c
mov qword [rsp + 0x30], rax
mov rcx, r12
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov qword [rsp + 0xf0], r13
call fcn.140018608
cmp eax, r13d
mov ebp, eax
je 0x14001cd69
mov rdx, qword [rsp + 0xf0]
cmp rdx, r13
je 0x14001cd69
mov esi, dword [rsp + 0xe0]
lea rax, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
call fcn.1400186e8
mov rdx, qword [rsp + 0xf0]
mov rcx, r12
mov ebp, eax
call fcn.1400185c8
cmp dword [rsp + 0xe0], 0x10
jbe 0x14001cd69
cmp rbx, r13
je 0x14001cd69
mov edx, esi
mov rcx, rbx
call fcn.140018338
mov rcx, rdi
sub esi, eax
mov dword [rsp + 0xe0], esi
mov byte [rsi + rbx], r13b
mov eax, dword [rsp + 0xe0]
add eax, 1
mov byte [rax + rbx], r13b
mov eax, dword [rsp + 0xe0]
add eax, 2
mov byte [rax + rbx], r13b
lea rax, [rbx + 0x10]
mov qword [rdi + 0x2f8], rax
mov eax, dword [rsp + 0xe0]
add eax, 0xfffffff0
mov dword [rdi + 0x300], eax
call fcn.14001c8a8
mov rdx, qword [rsp + 0xf8]
xor r8d, r8d
mov rcx, r12
call fcn.140018748
jmp 0x14001cd88
mov dword [rdi + 0x2c8], 0xffffffec
mov eax, ebp
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret