Function at 0x14000398a
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x400
xor ecx, ecx
add eax, 0x3e8
mov dword [0x14001a940], eax
mov rax, qword [0x14000c160]
mov rbx, qword [rax]
lea r13, [rbx + 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 [0x14000a020], rax
lea rax, [0x14000b32e]
cmp r12, 0xffffffffffffffff
je 0x140003c48
lea r14, [rbx + 0xb800]
mov rdx, r13
xor edi, edi
xor r13d, r13d
mov rcx, r14
lea rbp, [0x1400269c0]
lea r15, [rsp + 0x24]
call fcn.140007271
mov rcx, r14
call fcn.140006c2f
lea rcx, [rbx + 0xe000]
mov rdx, rax
call fcn.140007271
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x1400385d4], eax
mov r14d, eax
test r14d, r14d
je 0x140003b1c
cmp dword [0x14001a948], 1
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.1400036e7
test eax, eax
jne 0x140003a8d
mov ecx, 1
call fcn.140003657
jmp 0x140003b9e
cmp dword [0x14001a948], 0
jne 0x140003b40
mov r8d, 0x1c
mov rdx, rbp
mov rcx, r15
call fcn.140006d8a
mov eax, dword [rsp + 0x24]
test eax, 0xfffffff0
jne 0x140003b4d
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x140003b4d
cmp dword [rsp + 0x34], 0x74736e49
jne 0x140003b4d
cmp dword [rsp + 0x30], 0x74666f73
jne 0x140003b4d
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x140003b4d
mov edx, dword [0x1400385d0]
or esi, eax
mov eax, esi
mov dword [0x14001a948], edx
mov rdx, qword [0x14000c0d0]
and eax, 2
or dword [rdx + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp eax, r14d
ja 0x140003b9e
test sil, 8
jne 0x140003b31
test sil, 4
je 0x140003b31
mov ecx, 1
call fcn.140003657
cmp dword [0x14001a948], 0
jne 0x140003b75
jmp 0x140003b9e
lea r14d, [rax - 4]
inc edi
cmp ebx, r14d
cmova ebx, r14d
jmp 0x140003b4d
test sil, 2
jne 0x140003b4d
xor ecx, ecx
call fcn.140003657
cmp dword [0x1400385d4], r14d
jbe 0x140003b67
mov ecx, r13d
mov r8d, ebx
mov rdx, rbp
call fcn.140007be0
mov r13d, eax
add dword [0x1400385d0], ebx
sub r14d, ebx
jmp 0x140003a4b
test edi, edi
je 0x140003baa
mov ecx, dword [0x1400385d0]
call fcn.1400036f9
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.1400036e7
test eax, eax
je 0x140003b9e
cmp dword [rsp + 0x20], r13d
je 0x140003baa
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 0x140003c48
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x14001a948]
lea ecx, [rax + 0x1c]
call fcn.1400036f9
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.14000370f
cmp eax, dword [rsp + 0x38]
jne 0x140003b9e
mov qword [0x14001a950], rbx
mov eax, dword [rbx]
mov dword [0x14001a94c], eax
test byte [rsp + 0x24], 1
je 0x140003bff
inc dword [0x14001a944]
mov eax, 8
sub eax, 1
jb 0x140003c16
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x140003c04
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x14001a960]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.140006d8a
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret