Function at 0x140003fd4
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, 0x1000
xor ecx, ecx
add eax, 0x3e8
mov dword [0x140020140], eax
mov rax, qword [0x14000d180]
mov rbx, qword [rax]
lea r13, [rbx + 0x36000]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, r13
call fcn.1400075d7
mov r12, rax
mov qword [0x14000a020], rax
lea rax, [0x14000bfce]
cmp r12, 0xffffffffffffffff
je 0x140004292
lea r14, [rbx + 0x2e000]
mov rdx, r13
xor edi, edi
xor r13d, r13d
mov rcx, r14
lea rbp, [0x14002c1c0]
lea r15, [rsp + 0x24]
call fcn.140007a17
mov rcx, r14
call fcn.1400073d5
lea rcx, [rbx + 0x38000]
mov rdx, rax
call fcn.140007a17
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x1403b2ac4], eax
mov r14d, eax
test r14d, r14d
je 0x140004166
cmp dword [0x140020148], 1
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.140003d57
test eax, eax
jne 0x1400040d7
mov ecx, 1
call fcn.140003cc7
jmp 0x1400041e8
cmp dword [0x140020148], 0
jne 0x14000418a
mov r8d, 0x1c
mov rdx, rbp
mov rcx, r15
call fcn.140007530
mov eax, dword [rsp + 0x24]
test eax, 0xfffffff0
jne 0x140004197
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x140004197
cmp dword [rsp + 0x34], 0x74736e49
jne 0x140004197
cmp dword [rsp + 0x30], 0x74666f73
jne 0x140004197
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x140004197
mov edx, dword [0x1403b2ac0]
or esi, eax
mov eax, esi
mov dword [0x140020148], edx
mov rdx, qword [0x14000d0e0]
and eax, 2
or dword [rdx + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp eax, r14d
ja 0x1400041e8
test sil, 8
jne 0x14000417b
test sil, 4
je 0x14000417b
mov ecx, 1
call fcn.140003cc7
cmp dword [0x140020148], 0
jne 0x1400041bf
jmp 0x1400041e8
lea r14d, [rax - 4]
inc edi
cmp ebx, r14d
cmova ebx, r14d
jmp 0x140004197
test sil, 2
jne 0x140004197
xor ecx, ecx
call fcn.140003cc7
cmp dword [0x1403b2ac4], r14d
jbe 0x1400041b1
mov ecx, r13d
mov r8d, ebx
mov rdx, rbp
call fcn.1400087c0
mov r13d, eax
add dword [0x1403b2ac0], ebx
sub r14d, ebx
jmp 0x140004095
test edi, edi
je 0x1400041f4
mov ecx, dword [0x1403b2ac0]
call fcn.140003d69
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.140003d57
test eax, eax
je 0x1400041e8
cmp dword [rsp + 0x20], r13d
je 0x1400041f4
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 0x140004292
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x140020148]
lea ecx, [rax + 0x1c]
call fcn.140003d69
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.140003d7f
cmp eax, dword [rsp + 0x38]
jne 0x1400041e8
mov qword [0x140020150], rbx
mov eax, dword [rbx]
mov dword [0x14002014c], eax
test byte [rsp + 0x24], 1
je 0x140004249
inc dword [0x140020144]
mov eax, 8
sub eax, 1
jb 0x140004260
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x14000424e
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, [0x140020160]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.140007530
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret