Function at 0x140003a3c
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, [0x140045800]
mov r8d, 0x400
add eax, 0x3e8
mov rdx, rbx
xor ecx, ecx
mov dword [0x140036784], eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x80000000
lea r8d, [r15 + 3]
mov rcx, rbx
call fcn.14000787c
mov qword [0x14000d020], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140003ab3
lea rax, str.Error_launching_installer
jmp 0x140003d24
mov rdx, rbx
lea rcx, [0x140043800]
call fcn.140007b28
lea rcx, [0x140043800]
call fcn.140007cf0
mov rdx, rax
lea rcx, [0x140046000]
call fcn.140007b28
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14000f9f0], eax
mov ebx, eax
test eax, eax
je 0x140003bf0
mov ecx, dword [0x14003678c]
lea rdx, [0x1400195f0]
neg ecx
mov rcx, qword [0x14000d020]
sbb edi, edi
and edi, 0x7e00
add edi, 0x200
cmp ebx, edi
cmovb edi, ebx
mov r8d, edi
call fcn.1400078d0
test eax, eax
je 0x140003d03
cmp dword [0x14003678c], 0
jne 0x140003bb8
mov r8d, 0x1c
lea rdx, [0x1400195f0]
lea rcx, [rbp - 0x20]
call fcn.14000921c
test dword [rbp - 0x20], 0xfffffff0
jne 0x140003bc5
cmp dword [rbp - 0x1c], 0xdeadbeef
jne 0x140003bc5
cmp dword [rbp - 0x10], 0x74736e49
jne 0x140003bc5
cmp dword [rbp - 0x14], 0x74666f73
jne 0x140003bc5
cmp dword [rbp - 0x18], 0x6c6c754e
jne 0x140003bc5
mov eax, dword [0x14000f9f4]
or esi, dword [rbp - 0x20]
mov ecx, dword [rbp - 8]
mov dword [0x14003678c], eax
mov eax, esi
and eax, 2
or dword [0x140036880], eax
cmp ecx, ebx
ja 0x140003d1d
mov eax, esi
and al, 0xc
cmp al, 4
je 0x140003bf0
inc r14d
lea ebx, [rcx - 4]
cmp edi, ebx
jbe 0x140003bc5
mov edi, ebx
jmp 0x140003bc5
test sil, 2
jne 0x140003bc5
xor ecx, ecx
call fcn.1400039b4
cmp ebx, dword [0x14000f9f0]
jae 0x140003be2
mov r8d, edi
lea rdx, [0x1400195f0]
mov ecx, r15d
call fcn.140007e64
mov r15d, eax
add dword [0x14000f9f4], edi
sub ebx, edi
jne 0x140003af8
mov rcx, qword [0x14000f9f8]
test rcx, rcx
je 0x140003c02
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000f9f8], 0
cmp dword [0x14003678c], 0
je 0x140003d1d
test r14d, r14d
je 0x140003c5d
mov edx, dword [0x14000f9f4]
xor r9d, r9d
mov rcx, qword [0x14000d020]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x14000d020]
lea rdx, [rbp + 0x38]
mov r8d, 4
call fcn.1400078d0
test eax, eax
je 0x140003d1d
cmp r15d, dword [rbp + 0x38]
jne 0x140003d1d
movsxd rdx, dword [rbp - 0xc]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x14003678c]
xor r9d, r9d
mov rcx, qword [0x14000d020]
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 0x140003d1d
test byte [rbp - 0x20], 1
mov qword [0x140036798], rbx
mov eax, dword [rbx]
mov dword [0x140036790], eax
je 0x140003cbc
inc dword [0x140036788]
mov ecx, 8
lea rax, [rbx + 0x64]
lea rax, [rax - 0xc]
add qword [rax], rbx
add ecx, 0xffffffff
jne 0x140003cc5
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, [0x1400367a0]
call fcn.14000921c
xor eax, eax
jmp 0x140003d24
mov rcx, qword [0x14000f9f8]
test rcx, rcx
je 0x140003d15
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000f9f8], 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