Function at 0x140003f12
Capabilities:
Get file size

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebp, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x2000
xor ecx, ecx
add eax, 0x3e8
mov dword [0x140030140], 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.14000745b
mov rdi, rax
mov qword [0x14000a020], rax
lea rax, [0x14000be36]
cmp rdi, 0xffffffffffffffff
je 0x1400041cc
lea r12, [rbx + 0x5c000]
mov rdx, rsi
xor r13d, r13d
mov rcx, r12
lea r14, [0x14003c1c0]
call fcn.140007881
mov rcx, r12
xor r12d, r12d
call fcn.140007265
lea rcx, [rbx + 0x70000]
mov rdx, rax
call fcn.140007881
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14004428c], eax
mov ebx, eax
test ebx, ebx
je 0x1400040a7
cmp dword [0x140030148], 0
mov esi, 0x200
je 0x140003fe7
mov esi, 0x8000
cmp ebx, esi
mov rcx, r14
cmovbe esi, ebx
mov edx, esi
call fcn.140003cab
test eax, eax
jne 0x140004009
mov ecx, 1
call fcn.140003c21
jmp 0x14000408b
cmp dword [0x140030148], 0
jne 0x1400040c9
lea rcx, [rsp + 0x24]
mov r8d, 0x1c
mov rdx, r14
call fcn.1400073bf
mov eax, dword [rsp + 0x24]
cmp eax, 0xf
ja 0x1400040d8
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x1400040d8
cmp dword [rsp + 0x34], 0x74736e49
jne 0x1400040d8
cmp dword [rsp + 0x30], 0x74666f73
jne 0x1400040d8
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x1400040d8
mov edx, dword [0x140044288]
or ebp, eax
mov rax, qword [0x14000d0b0]
mov dword [0x140030148], edx
mov edx, ebp
and edx, 2
or dword [rax + 0x20], edx
mov eax, dword [rsp + 0x3c]
cmp ebx, eax
jae 0x140004097
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 0x1400041cc
test ebp, 8
jne 0x1400040bc
test ebp, 4
je 0x1400040bc
mov ecx, 1
call fcn.140003c21
cmp dword [0x140030148], 0
jne 0x1400040fe
jmp 0x14000408b
lea ebx, [rax - 4]
inc r13d
cmp esi, ebx
cmova esi, ebx
jmp 0x1400040d8
test ebp, 2
jne 0x1400040d8
xor ecx, ecx
call fcn.140003c21
cmp ebx, dword [0x14004428c]
jae 0x1400040f1
mov ecx, r12d
mov r8d, esi
mov rdx, r14
call fcn.1400085a0
mov r12d, eax
add dword [0x140044288], esi
sub ebx, esi
jmp 0x140003fcc
test r13d, r13d
je 0x140004130
mov ecx, dword [0x140044288]
call fcn.140003cbd
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.140003cab
test eax, eax
je 0x14000408b
cmp dword [rsp + 0x20], r12d
jne 0x14000408b
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x140030148]
lea ecx, [rax + 0x1c]
call fcn.140003cbd
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.140003cd3
cmp eax, dword [rsp + 0x38]
jne 0x14000408b
mov qword [0x140030150], rbx
mov eax, dword [rbx]
mov dword [0x14003014c], eax
test byte [rsp + 0x24], 1
je 0x140004189
inc dword [0x140030144]
xor eax, eax
add qword [rbx + rax + 0x58], rbx
sub rax, 0xc
cmp rax, 0xffffffffffffffa0
jne 0x14000418b
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + 4]
mov r8d, 0x60
lea rcx, [0x140030160]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.1400073bf
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret