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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
xor r15d, r15d
mov r12, r9
and dword [rax - 0x38], ebp
and dword [rax - 0x34], ebp
mov r13, r8
xor ebx, ebx
mov r14, rdx
mov rsi, rcx
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
lea edi, [rbp + 4]
cmp rcx, rax
je 0x14004ce68
test byte [rcx + 0x1c], dil
je 0x14004ce68
cmp byte [rcx + 0x19], 5
jb 0x14004ce68
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0x139
call fcn.14000ffa8
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14004cebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1c9
test byte [rcx + 0x1c], dil
je 0x14004d1c9
cmp byte [rcx + 0x19], 2
jb 0x14004d1c9
mov edx, 0x13a
jmp 0x14004d163
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004cf17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1c9
test byte [rcx + 0x1c], dil
je 0x14004d1c9
cmp byte [rcx + 0x19], 2
jb 0x14004d1c9
mov edx, 0x13b
jmp 0x14004d163
cmp dword [rsp + 0x34], edi
je 0x14004cf6b
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1e7
test byte [rcx + 0x1c], dil
je 0x14004d1e7
cmp byte [rcx + 0x19], 2
jb 0x14004d1e7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0x13c
call fcn.1400100e0
jmp 0x14004d1e7
mov ecx, dword [rsp + 0x30]
call fcn.140076a54
mov rbp, rax
test rax, rax
jne 0x14004cfc9
lea ebx, [rax + 8]
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1cd
test byte [rcx + 0x1c], dil
je 0x14004d1cd
cmp byte [rcx + 0x19], 2
jb 0x14004d1cd
mov r9d, dword [rsp + 0x30]
mov edx, 0x13d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
call fcn.1400100e0
jmp 0x14004d1cd
mov r8d, dword [rsp + 0x30]
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004d025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1c9
test byte [rcx + 0x1c], dil
je 0x14004d1c9
cmp byte [rcx + 0x19], 2
jb 0x14004d1c9
mov edx, 0x13e
jmp 0x14004d163
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
je 0x14004d06d
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1cd
test byte [rcx + 0x1c], dil
je 0x14004d1cd
cmp byte [rcx + 0x19], 2
jb 0x14004d1cd
mov edx, 0x13f
jmp 0x14004cfb4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14004d0bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1c9
test byte [rcx + 0x1c], 4
je 0x14004d1c9
cmp byte [rcx + 0x19], 2
jb 0x14004d1c9
mov edx, 0x140
jmp 0x14004d163
sub edi, dword [rsp + 0x30]
sub edi, 8
mov ecx, edi
call fcn.140076a54
mov r15, rax
test rax, rax
jne 0x14004d11a
lea ebx, [rax + 8]
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1cd
test byte [rcx + 0x1c], 4
je 0x14004d1cd
cmp byte [rcx + 0x19], 2
jb 0x14004d1cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0x141
call fcn.14000ffa8
jmp 0x14004d1cd
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004d178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1c9
test byte [rcx + 0x1c], 4
je 0x14004d1c9
cmp byte [rcx + 0x19], 2
jb 0x14004d1c9
mov edx, 0x142
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov r9d, ebx
call fcn.1400100e0
jmp 0x14004d1c9
cmp edi, dword [rsp + 0x34]
je 0x14004d1b0
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004d1cd
test byte [rcx + 0x1c], 4
je 0x14004d1cd
cmp byte [rcx + 0x19], 2
jb 0x14004d1cd
mov edx, 0x143
jmp 0x14004cfb4
mov eax, dword [rsp + 0x30]
mov qword [r14], rbp
mov qword [r12], r15
mov dword [r13], eax
mov rax, qword [rsp + 0x90]
mov dword [rax], edi
test ebx, ebx
je 0x14004d1e7
test rbp, rbp
je 0x14004d1da
mov rcx, rbp
call fcn.140076afc
test r15, r15
je 0x14004d1e7
mov rcx, r15
call fcn.140076afc
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret