Function at 0x14000402f
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 edi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x1000
xor ecx, ecx
add eax, 0x3e8
mov dword [0x14001d140], eax
mov rax, qword [0x140010d30]
mov rbp, qword [rax]
lea rsi, [rbp + 0x36000]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, rsi
call fcn.1400087f0
mov rbx, rax
mov qword [0x14000c028], rax
lea rax, [0x14000de60]
cmp rbx, 0xffffffffffffffff
je 0x140004362
lea r12, [rbp + 0x2e000]
mov rdx, rsi
xor r13d, r13d
mov rcx, r12
lea r14, [0x14001d1c0]
lea r15, [rsp + 0x4c]
call fcn.140008c13
mov rcx, r12
xor r12d, r12d
call fcn.1400085fb
lea rcx, [rbp + 0x38000]
mov rdx, rax
call fcn.140008c13
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14003128c], eax
mov esi, eax
test esi, esi
je 0x1400041ca
cmp dword [0x14001d148], 1
mov rcx, r14
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp esi, ebx
cmovbe ebx, esi
mov edx, ebx
call fcn.140003d0e
test eax, eax
jne 0x140004132
mov ecx, 1
call fcn.140003c2a
jmp 0x1400041b2
cmp dword [0x14001d148], 0
jne 0x1400041ec
mov r8d, 0x1c
mov rdx, r14
mov rcx, r15
call fcn.140008755
mov eax, dword [rsp + 0x4c]
cmp eax, 0xf
ja 0x1400041f9
cmp dword [rsp + 0x50], 0xdeadbeef
jne 0x1400041f9
cmp dword [rsp + 0x5c], 0x74736e49
jne 0x1400041f9
cmp dword [rsp + 0x58], 0x74666f73
jne 0x1400041f9
cmp dword [rsp + 0x54], 0x6c6c754e
jne 0x1400041f9
mov edx, dword [0x140031288]
or edi, eax
mov rax, qword [0x140010c90]
mov dword [0x14001d148], edx
mov edx, edi
and edx, 2
or dword [rax + 0x20], edx
mov eax, dword [rsp + 0x64]
cmp esi, eax
jae 0x1400041be
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 0x140004362
test dil, 8
jne 0x1400041df
test dil, 4
je 0x1400041df
mov ecx, 1
call fcn.140003c2a
cmp dword [0x14001d148], 0
jne 0x14000421f
jmp 0x1400041b2
lea esi, [rax - 4]
inc r13d
cmp ebx, esi
cmova ebx, esi
jmp 0x1400041f9
test dil, 2
jne 0x1400041f9
xor ecx, ecx
call fcn.140003c2a
cmp esi, dword [0x14003128c]
jae 0x140004212
mov ecx, r12d
mov r8d, ebx
mov rdx, r14
call fcn.140009a10
mov r12d, eax
add dword [0x140031288], ebx
sub esi, ebx
jmp 0x1400040f3
test r13d, r13d
lea rsi, [rsp + 0x68]
je 0x140004254
mov ecx, dword [0x140031288]
call fcn.140003d20
mov edx, 4
mov rcx, rsi
call fcn.140003d0e
test eax, eax
je 0x1400041b2
cmp dword [rsp + 0x68], r12d
jne 0x1400041b2
movsxd rdx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rcx, [0x1400311e0]
mov rbx, rax
call fcn.140009a80
lea rdx, [rbp + 0x32000]
mov rcx, rsi
call fcn.14000883c
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14000c020], rax
inc rax
lea rax, [0x14000e02c]
je 0x140004362
mov eax, dword [0x14001d148]
lea ecx, [rax + 0x1c]
call fcn.140003d20
xor edx, edx
mov edi, dword [rsp + 0x64]
test byte [rsp + 0x4c], 4
sete dl
mov r9d, dword [rsp + 0x60]
mov dword [0x140031294], eax
mov r8, rbx
shl edx, 2
lea ecx, [rdi - 0x1c]
sub ecx, edx
xor edx, edx
add eax, ecx
or ecx, 0xffffffff
mov dword [0x140031290], eax
call fcn.140003ef2
cmp eax, dword [rsp + 0x60]
jne 0x1400041b2
mov qword [0x14001d150], rbx
mov eax, dword [rbx]
mov dword [0x14001d14c], eax
test byte [rsp + 0x4c], 1
je 0x14000432e
inc dword [0x14001d144]
xor eax, eax
add qword [rbx + rax + 0x58], rbx
sub rax, 0xc
cmp rax, 0xffffffffffffffa0
jne 0x140004330
movsxd rax, dword [0x140031298]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x14001d160]
mov qword [rbx + 0x58], rax
call fcn.140008755
xor eax, eax
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret