Function at 0x140003a10
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov esi, ecx
xor r15d, r15d
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rbx, [0x140039800]
mov r8d, 0x400
add eax, 0x3e8
mov rdx, rbx
xor ecx, ecx
mov dword [0x14002aa64], eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x80000000
lea r8d, [r15 + 3]
mov rcx, rbx
call fcn.140007850
mov qword [0x14000c020], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140003a87
lea rax, str.Error_launching_installer
jmp 0x140003cf8
mov rdx, rbx
lea rcx, [0x140037800]
call fcn.140007afc
lea rcx, [0x140037800]
call fcn.140007cc4
mov rdx, rax
lea rcx, [0x14003a000]
call fcn.140007afc
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14000e9b0], eax
mov ebx, eax
test eax, eax
je 0x140003bc4
mov ecx, dword [0x14002aa6c]
lea rdx, [0x14000ea70]
neg ecx
mov rcx, qword [0x14000c020]
sbb edi, edi
and edi, 0x7e00
add edi, 0x200
cmp ebx, edi
cmovb edi, ebx
mov r8d, edi
call fcn.1400078a4
test eax, eax
je 0x140003cd7
cmp dword [0x14002aa6c], 0
jne 0x140003b8c
mov r8d, 0x1c
lea rdx, [0x14000ea70]
lea rcx, [rbp - 0x20]
call fcn.140008d2c
test dword [rbp - 0x20], 0xfffffff0
jne 0x140003b99
cmp dword [rbp - 0x1c], 0xdeadbeef
jne 0x140003b99
cmp dword [rbp - 0x10], 0x74736e49
jne 0x140003b99
cmp dword [rbp - 0x14], 0x74666f73
jne 0x140003b99
cmp dword [rbp - 0x18], 0x6c6c754e
jne 0x140003b99
mov eax, dword [0x14000e9b4]
or esi, dword [rbp - 0x20]
mov ecx, dword [rbp - 8]
mov dword [0x14002aa6c], eax
mov eax, esi
and eax, 2
or dword [0x14002ab60], eax
cmp ecx, ebx
ja 0x140003cf1
mov eax, esi
and al, 0xc
cmp al, 4
je 0x140003bc4
inc r14d
lea ebx, [rcx - 4]
cmp edi, ebx
jbe 0x140003b99
mov edi, ebx
jmp 0x140003b99
test sil, 2
jne 0x140003b99
xor ecx, ecx
call fcn.140003988
cmp ebx, dword [0x14000e9b0]
jae 0x140003bb6
mov r8d, edi
lea rdx, [0x14000ea70]
mov ecx, r15d
call fcn.140007e38
mov r15d, eax
add dword [0x14000e9b4], edi
sub ebx, edi
jne 0x140003acc
mov rcx, qword [0x14000e9b8]
test rcx, rcx
je 0x140003bd6
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000e9b8], 0
cmp dword [0x14002aa6c], 0
je 0x140003cf1
test r14d, r14d
je 0x140003c31
mov edx, dword [0x14000e9b4]
xor r9d, r9d
mov rcx, qword [0x14000c020]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x14000c020]
lea rdx, [rbp + 0x38]
mov r8d, 4
call fcn.1400078a4
test eax, eax
je 0x140003cf1
cmp r15d, dword [rbp + 0x38]
jne 0x140003cf1
movsxd rdx, dword [rbp - 0xc]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x14002aa6c]
xor r9d, r9d
mov rcx, qword [0x14000c020]
add edx, 0x1c
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r9d, dword [rbp - 0xc]
mov r8, rbx
xor edx, edx
or ecx, 0xffffffff
call fcn.140003734
cmp eax, dword [rbp - 0xc]
jne 0x140003cf1
test byte [rbp - 0x20], 1
mov qword [0x14002aa78], rbx
mov eax, dword [rbx]
mov dword [0x14002aa70], eax
je 0x140003c90
inc dword [0x14002aa68]
mov ecx, 8
lea rax, [rbx + 0x64]
lea rax, [rax - 0xc]
add qword [rax], rbx
add ecx, 0xffffffff
jne 0x140003c99
lea r9d, [rcx + 1]
xor r8d, r8d
mov rcx, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, eax
lea rdx, [rbx + 4]
mov r8d, 0x60
mov qword [rbx + 0x58], rax
lea rcx, [0x14002aa80]
call fcn.140008d2c
xor eax, eax
jmp 0x140003cf8
mov rcx, qword [0x14000e9b8]
test rcx, rcx
je 0x140003ce9
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000e9b8], 0
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
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret