Function at 0x140001008
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
or r12, 0xffffffffffffffff
xor ebx, ebx
xor r15d, r15d
xor r14d, r14d
mov rbp, rdx
mov edi, ecx
mov r13, r12
mov rsi, r12
cmp ecx, 3
jge 0x140001049
mov edx, 0x1772
xor ecx, ecx
call fcn.140001550
mov eax, r12d
jmp 0x14000144a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop dword [rax + rax]
mov qword [0x1400035d0], rax
test rax, rax
je 0x140001041
and qword [rsp + 0x20], rbx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
nop dword [rax + rax]
mov r12, rax
test rax, rax
jne 0x1400010c2
mov rcx, qword [0x1400035d0]
mov edx, 0x1779
call fcn.140001550
jmp 0x1400013b3
dec edi
cmp edi, 1
jle 0x14000131a
add rbp, 8
xor ebx, ebx
and qword [rsp + 0xa8], rbx
and dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rbp
mov rbp, qword [rbp]
test rbp, rbp
je 0x140001235
and qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r14d, r14d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0xa0], r14d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000115d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400011f2
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14000113e
xor eax, eax
cmp dword [rsp + 0x90], eax
je 0x14000118e
mov ebx, 0x80004005
jmp 0x1400011f6
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
nop dword [rax + rax]
mov qword [rsp + 0xa8], rax
mov rcx, rax
test rax, rax
je 0x14000113e
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
test rax, rax
je 0x14000113e
mov dword [rsp + 0xa0], r14d
mov r15, rax
test ebx, ebx
je 0x14000120f
cmp rsi, 0xffffffffffffffff
je 0x14000120f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x14000122b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov r14d, dword [rsp + 0xa0]
jmp 0x14000123a
mov ebx, 0x80070057
test ebx, ebx
jne 0x140001301
and qword [rsp + 0x28], 0
lea edx, [rbx + 1]
mov r9d, r14d
mov dword [rsp + 0x20], 2
mov r8, r15
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertAddEncodedCRLToStore]
nop dword [rax + rax]
test eax, eax
jne 0x1400012b3
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea ecx, [rbx + 8]
mov edx, 0x10001
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400012e8
mov rdx, r12
mov rcx, rax
call fcn.140001464
test eax, eax
je 0x1400012e8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rcx, rsi
xor r15d, r15d
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x98]
or rsi, 0xffffffffffffffff
jmp 0x1400010c2
mov rcx, qword [0x1400035d0]
mov r8, rbp
mov edx, 0x177b
call fcn.140001550
jmp 0x1400013b3
mov r8, rbp
mov edx, 0x177b
mov rcx, qword [0x1400035d0]
call fcn.140001550
jmp 0x1400013b1
mov rbx, qword [rbp + 8]
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140001362
mov r8, rbx
mov edx, 0x1774
jmp 0x140001309
and dword [rsp + 0x28], 0
mov r9d, 1
mov edx, 0x10001
mov qword [rsp + 0x20], rax
mov rcx, r12
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertSaveStore]
nop dword [rax + rax]
test eax, eax
jne 0x1400013c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400035d0]
mov edx, 0x177c
mov r9d, eax
mov r8d, eax
call fcn.140001550
xor ebx, ebx
mov rcx, qword [0x1400035d0]
or edi, 0xffffffff
mov edx, 0x177d
call fcn.140001550
jmp 0x1400013de
mov rcx, qword [0x1400035d0]
mov edx, 0x177e
xor edi, edi
call fcn.140001550
xor ebx, ebx
test r15, r15
je 0x1400013f2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
cmp rsi, 0xffffffffffffffff
je 0x140001407
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14000141d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop dword [rax + rax]
test r12, r12
je 0x140001433
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop dword [rax + rax]
cmp r13, 0xffffffffffffffff
je 0x140001448
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret