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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edi, edi
mov r12, rcx
mov qword [rsp + 0x70], rdi
mov r14d, edi
mov qword [rsp + 0x68], rdi
mov esi, edi
mov dword [rsp + 0x64], edi
mov dword [rbp - 0x78], edi
test rcx, rcx
je 0x14004cd32
lea edx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14004cd10
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], Ordinal_133
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r12
mov qword [rsp + 0x1c8], r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14004cd08
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x14004cd08
inc eax
mov qword [rsp + 0x1b8], rbx
mov ecx, eax
mov qword [rsp + 0x1c0], r13
mov ebx, eax
call fcn.14012a2dc
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov r13, rax
call fcn.14027b2c0
mov ebx, dword [rsp + 0x60]
lea r9, [rbp - 0x78]
mov r8d, ebx
mov qword [rsp + 0x20], rdi
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
test eax, eax
jne 0x14004cad6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004ccd0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x70]
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x40], rax
mov r8d, 0x400
lea rax, [rbp - 0x74]
mov ecx, r9d
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x14004cb9a
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x70]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x14004ccd0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
je 0x14004ccd0
mov ecx, dword [rsp + 0x64]
call fcn.14012a2dc
mov rsi, rax
test rax, rax
je 0x14004ccd0
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, rsi
lea edx, [r8 + 6]
call qword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
je 0x14004ccd0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, reloc.WLDAP32.dll_Ordinal_208
call fcn.14027b2c0
movups xmm0, xmmword [rsi + 8]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0xb0000
movaps xmmword [rbp - 0x30], xmm0
xor r8d, r8d
movups xmm0, xmmword [rsi + 0x18]
mov edx, 0x10001
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov r14, rax
test rax, rax
je 0x14004ccd0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov ebx, eax
cmp eax, 1
jbe 0x14004ccd0
lea r15d, [rax + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
mov rdi, rax
test rax, rax
je 0x14004ccd0
lea r8, [r15 + r15]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, r14
lea edx, [r9 + 4]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov rbx, qword [rsp + 0x1b8]
test r13, r13
je 0x14004cce5
mov rcx, r13
call fcn.14012a2d4
mov r13, qword [rsp + 0x1c0]
test rsi, rsi
je 0x14004ccfa
mov rcx, rsi
call fcn.14012a2d4
test r14, r14
je 0x14004cd08
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov r15, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14004cd22
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004cd32
call qword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x180
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret