Function at 0x140011950
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x380
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rbp, rdx
mov r14, rcx
xor edi, edi
lea rcx, [rsp + 0x260]
xor edx, edx
mov dword [rsp + 0x40], edi
mov r8d, 0x104
mov r12, r9
call fcn.140026cc0
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400119fa
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
test eax, eax
jne 0x1400119ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, 0xffffffffffffffff
jmp 0x1400119fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea eax, [rbx - 0x100]
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
movsxd r15, eax
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011a4b
lea rdx, str.CreateFile_fail
lea rcx, [0x140077e88]
call fcn.140004ef0
jmp 0x140011a88
test r15, r15
je 0x140011a62
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140001310
test al, al
je 0x140011a88
lea rax, [rsp + 0x260]
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.1400013b0
test al, al
jne 0x140011aa2
lea rdx, str.verifySig_read_byte_merge_file_fail
lea rcx, [0x140077e88]
call fcn.140004170
xor eax, eax
jmp 0x140011c3b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140026cc0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011b07
mov r9, rbp
lea r8, str.CreateFile_fail__s
lea rdx, [rsp + 0x50]
lea rcx, [0x140077e88]
call fcn.1400049f0
jmp 0x140011c39
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140011b62
mov r9, rax
lea r8, str.CreateFile_fail__s
lea rdx, [rsp + 0x50]
lea rcx, [0x140077e88]
call fcn.1400049f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011c39
lea rax, [rsp + 0x50]
mov r8, rbp
lea r9d, [rbx - 0x100]
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.140001730
movzx ebx, al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140011c39
mov rcx, r14
call fcn.140011df0
test eax, eax
je 0x140011c39
mov ebx, dword [rsp + 0x40]
mov r10d, edi
mov r11d, ebx
shr r11d, 1
je 0x140011bef
lea r9, [rsp + 0x260]
mov eax, ebx
lea rcx, [rsp + 0x260]
sub eax, r10d
lea r9, [r9 + 1]
dec eax
inc r10d
add rcx, rax
movzx eax, byte [r9 - 1]
movzx r8d, byte [rcx]
mov byte [rcx], al
mov byte [r9 - 1], r8b
cmp r10d, r11d
jb 0x140011bc2
mov rdx, r12
mov rcx, r14
call fcn.140011c60
test eax, eax
je 0x140011c39
mov r9, qword [r14 + 0x10]
lea rdx, [rsp + 0x260]
mov rcx, qword [r14 + 0x20]
mov r8d, ebx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov edi, eax
test eax, eax
jne 0x140011c39
lea rdx, str.Verify_Signature_fail
lea rcx, [0x140077e88]
call fcn.140004170
mov eax, edi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x380
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret