Function at 0x140003966
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x400
xor ecx, ecx
add eax, 0x3e8
mov dword [0x140016940], eax
mov rax, qword [0x14000b0d0]
mov rdi, qword [rax]
lea r13, [rdi + 0xd800]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, r13
call fcn.140006e31
mov r12, rax
mov qword [0x140009028], rax
lea rax, [0x14000a3de]
cmp r12, 0xffffffffffffffff
je 0x140003ca3
lea r14, [rdi + 0xb800]
mov rdx, r13
lea r15, [rsp + 0x4c]
xor ebp, ebp
mov rcx, r14
lea r13, [0x1400169c0]
call fcn.140007271
mov rcx, r14
call fcn.140006c2f
lea rcx, [rdi + 0xe000]
mov rdx, rax
call fcn.140007271
mov rcx, r12
xor edx, edx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14002aa8c], eax
mov r14d, eax
test r14d, r14d
je 0x140003afb
cmp dword [0x140016948], 1
mov rcx, r13
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.14000362e
test eax, eax
jne 0x140003a6c
mov ecx, 1
call fcn.140003540
jmp 0x140003b80
cmp dword [0x140016948], 0
jne 0x140003b1f
mov r8d, 0x1c
mov rdx, r13
mov rcx, r15
call fcn.140006d8a
mov eax, dword [rsp + 0x4c]
test eax, 0xfffffff0
jne 0x140003b2c
cmp dword [rsp + 0x50], 0xdeadbeef
jne 0x140003b2c
cmp dword [rsp + 0x5c], 0x74736e49
jne 0x140003b2c
cmp dword [rsp + 0x58], 0x74666f73
jne 0x140003b2c
cmp dword [rsp + 0x54], 0x6c6c754e
jne 0x140003b2c
mov rcx, qword [0x14000b040]
or esi, eax
mov edx, dword [0x14002aa88]
mov eax, esi
and eax, 2
or dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x64]
mov dword [0x140016948], edx
cmp eax, r14d
ja 0x140003b80
test sil, 8
jne 0x140003b10
test sil, 4
je 0x140003b10
mov ecx, 1
call fcn.140003540
cmp dword [0x140016948], 0
jne 0x140003b54
jmp 0x140003b80
lea r14d, [rax - 4]
inc ebp
cmp ebx, r14d
cmova ebx, r14d
jmp 0x140003b2c
test sil, 2
jne 0x140003b2c
xor ecx, ecx
call fcn.140003540
cmp dword [0x14002aa8c], r14d
jbe 0x140003b46
mov ecx, r12d
mov r8d, ebx
mov rdx, r13
call fcn.140007bc0
mov r12d, eax
add dword [0x14002aa88], ebx
sub r14d, ebx
jmp 0x140003a2a
test ebp, ebp
lea r13, [rsp + 0x68]
je 0x140003b8c
mov ecx, dword [0x14002aa88]
call fcn.140003640
mov edx, 4
mov rcx, r13
call fcn.14000362e
test eax, eax
je 0x140003b80
cmp dword [rsp + 0x68], r12d
je 0x140003b8c
lea rax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
jmp 0x140003ca3
movsxd rdx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rcx, [0x14002a9e0]
mov rbx, rax
call fcn.140007c30
lea rdx, [rdi + 0xc800]
mov rcx, r13
call fcn.140006e7e
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
mov rcx, r13
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140009020], rax
inc rax
lea rax, [0x14000a358]
je 0x140003ca3
mov eax, dword [0x140016948]
lea ecx, [rax + 0x1c]
call fcn.140003640
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x64]
mov r8, rbx
mov dword [0x14002aa94], eax
mov r9d, dword [rsp + 0x60]
and edx, 4
lea eax, [rax + rcx - 0x1c]
cmp edx, 1
sbb edx, edx
or ecx, 0xffffffff
and edx, 4
sub eax, edx
xor edx, edx
mov dword [0x14002aa90], eax
call fcn.140003818
cmp eax, dword [rsp + 0x60]
jne 0x140003b80
mov qword [0x140016950], rbx
mov eax, dword [rbx]
mov dword [0x14001694c], eax
test byte [rsp + 0x4c], 1
je 0x140003c69
inc dword [0x140016944]
mov eax, 8
sub eax, 1
jb 0x140003c80
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x140003c6e
movsxd rax, dword [0x14002aa98]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x140016960]
mov qword [rbx + 0x58], rax
call fcn.140006d8a
xor eax, eax
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret