Function at 0x140004106
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
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 [0x14000d260]
mov rdi, qword [rax]
lea r13, [rdi + 0x36000]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, r13
call fcn.1400077a7
mov r12, rax
mov qword [0x14000a028], rax
lea rax, [0x14000c07e]
cmp r12, 0xffffffffffffffff
je 0x140004443
lea r14, [rdi + 0x2e000]
mov rdx, r13
lea r15, [rsp + 0x4c]
xor ebp, ebp
mov rcx, r14
lea r13, [0x1400201c0]
call fcn.140007be7
mov rcx, r14
call fcn.1400075a5
lea rcx, [rdi + 0x38000]
mov rdx, rax
call fcn.140007be7
mov rcx, r12
xor edx, edx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14003428c], eax
mov r14d, eax
test r14d, r14d
je 0x14000429b
cmp dword [0x140020148], 1
mov rcx, r13
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.140003dce
test eax, eax
jne 0x14000420c
mov ecx, 1
call fcn.140003ce0
jmp 0x140004320
cmp dword [0x140020148], 0
jne 0x1400042bf
mov r8d, 0x1c
mov rdx, r13
mov rcx, r15
call fcn.140007700
mov eax, dword [rsp + 0x4c]
test eax, 0xfffffff0
jne 0x1400042cc
cmp dword [rsp + 0x50], 0xdeadbeef
jne 0x1400042cc
cmp dword [rsp + 0x5c], 0x74736e49
jne 0x1400042cc
cmp dword [rsp + 0x58], 0x74666f73
jne 0x1400042cc
cmp dword [rsp + 0x54], 0x6c6c754e
jne 0x1400042cc
mov rcx, qword [0x14000d1c0]
or esi, eax
mov edx, dword [0x140034288]
mov eax, esi
and eax, 2
or dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x64]
mov dword [0x140020148], edx
cmp eax, r14d
ja 0x140004320
test sil, 8
jne 0x1400042b0
test sil, 4
je 0x1400042b0
mov ecx, 1
call fcn.140003ce0
cmp dword [0x140020148], 0
jne 0x1400042f4
jmp 0x140004320
lea r14d, [rax - 4]
inc ebp
cmp ebx, r14d
cmova ebx, r14d
jmp 0x1400042cc
test sil, 2
jne 0x1400042cc
xor ecx, ecx
call fcn.140003ce0
cmp dword [0x14003428c], r14d
jbe 0x1400042e6
mov ecx, r12d
mov r8d, ebx
mov rdx, r13
call fcn.140008990
mov r12d, eax
add dword [0x140034288], ebx
sub r14d, ebx
jmp 0x1400041ca
test ebp, ebp
lea r13, [rsp + 0x68]
je 0x14000432c
mov ecx, dword [0x140034288]
call fcn.140003de0
mov edx, 4
mov rcx, r13
call fcn.140003dce
test eax, eax
je 0x140004320
cmp dword [rsp + 0x68], r12d
je 0x14000432c
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 0x140004443
movsxd rdx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rcx, [0x1400341e0]
mov rbx, rax
call fcn.140008a00
lea rdx, [rdi + 0x32000]
mov rcx, r13
call fcn.1400077f4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
mov rcx, r13
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14000a020], rax
inc rax
lea rax, [0x14000bff8]
je 0x140004443
mov eax, dword [0x140020148]
lea ecx, [rax + 0x1c]
call fcn.140003de0
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x64]
mov r8, rbx
mov dword [0x140034294], eax
mov r9d, dword [rsp + 0x60]
and edx, 4
lea eax, [rax + rcx - 0x1c]
cmp edx, 1
sbb edx, edx
or ecx, 0xffffffff
and edx, 4
sub eax, edx
xor edx, edx
mov dword [0x140034290], eax
call fcn.140003fb8
cmp eax, dword [rsp + 0x60]
jne 0x140004320
mov qword [0x140020150], rbx
mov eax, dword [rbx]
mov dword [0x14002014c], eax
test byte [rsp + 0x4c], 1
je 0x140004409
inc dword [0x140020144]
mov eax, 8
sub eax, 1
jb 0x140004420
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x14000440e
movsxd rax, dword [0x140034298]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x140020160]
mov qword [rbx + 0x58], rax
call fcn.140007700
xor eax, eax
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret