Function at 0x140003ede
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 edi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x2000
xor ecx, ecx
add eax, 0x3e8
mov dword [0x14002f140], eax
mov rax, qword [0x14000d150]
mov rbx, qword [rax]
lea rsi, [rbx + 0x6c000]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, rsi
call fcn.14000743b
mov rbp, rax
mov qword [0x14000a020], rax
lea rax, [0x14000be36]
cmp rbp, 0xffffffffffffffff
je 0x14000419f
lea r12, [rbx + 0x5c000]
mov rdx, rsi
xor r13d, r13d
mov rcx, r12
lea r14, [0x14003b1c0]
lea r15, [rsp + 0x24]
call fcn.140007861
mov rcx, r12
xor r12d, r12d
call fcn.140007245
lea rcx, [rbx + 0x70000]
mov rdx, rax
call fcn.140007861
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14004328c], eax
mov esi, eax
test esi, esi
je 0x14000407a
cmp dword [0x14002f148], 1
mov rcx, r14
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp esi, ebx
cmovbe ebx, esi
mov edx, ebx
call fcn.140003c7b
test eax, eax
jne 0x140003fde
mov ecx, 1
call fcn.140003bf1
jmp 0x14000405e
cmp dword [0x14002f148], 0
jne 0x14000409c
mov r8d, 0x1c
mov rdx, r14
mov rcx, r15
call fcn.14000739f
mov eax, dword [rsp + 0x24]
cmp eax, 0xf
ja 0x1400040ab
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x1400040ab
cmp dword [rsp + 0x34], 0x74736e49
jne 0x1400040ab
cmp dword [rsp + 0x30], 0x74666f73
jne 0x1400040ab
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x1400040ab
mov edx, dword [0x140043288]
or edi, eax
mov rax, qword [0x14000d0b0]
mov dword [0x14002f148], edx
mov edx, edi
and edx, 2
or dword [rax + 0x20], edx
mov eax, dword [rsp + 0x3c]
cmp esi, eax
jae 0x14000406a
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 0x14000419f
test edi, 8
jne 0x14000408f
test edi, 4
je 0x14000408f
mov ecx, 1
call fcn.140003bf1
cmp dword [0x14002f148], 0
jne 0x1400040d1
jmp 0x14000405e
lea esi, [rax - 4]
inc r13d
cmp ebx, esi
cmova ebx, esi
jmp 0x1400040ab
test edi, 2
jne 0x1400040ab
xor ecx, ecx
call fcn.140003bf1
cmp esi, dword [0x14004328c]
jae 0x1400040c4
mov ecx, r12d
mov r8d, ebx
mov rdx, r14
call fcn.140008540
mov r12d, eax
add dword [0x140043288], ebx
sub esi, ebx
jmp 0x140003f9f
test r13d, r13d
je 0x140004103
mov ecx, dword [0x140043288]
call fcn.140003c8d
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.140003c7b
test eax, eax
je 0x14000405e
cmp dword [rsp + 0x20], r12d
jne 0x14000405e
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x14002f148]
lea ecx, [rax + 0x1c]
call fcn.140003c8d
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.140003ca3
cmp eax, dword [rsp + 0x38]
jne 0x14000405e
mov qword [0x14002f150], rbx
mov eax, dword [rbx]
mov dword [0x14002f14c], eax
test byte [rsp + 0x24], 1
je 0x14000415c
inc dword [0x14002f144]
xor eax, eax
add qword [rbx + rax + 0x58], rbx
sub rax, 0xc
cmp rax, 0xffffffffffffffa0
jne 0x14000415e
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x14002f160]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.14000739f
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret