Function at 0x403f1f
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, 0x2000
xor ecx, ecx
add eax, 0x3e8
mov dword [0x0042a140], eax
mov rax, qword [0x0040d150]
mov rbx, qword [rax]
lea r13, [rbx + 0x6c000]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, r13
call fcn.00407471
mov r12, rax
mov qword [0x0040a020], rax
lea rax, [0x0040bfce]
cmp r12, 0xffffffffffffffff
je 0x4041dd
lea r14, [rbx + 0x5c000]
mov rdx, r13
xor edi, edi
xor r13d, r13d
mov rcx, r14
lea rbp, [0x004361c0]
lea r15, [rsp + 0x24]
call fcn.004078b1
mov rcx, r14
call fcn.0040726f
lea rcx, [rbx + 0x70000]
mov rdx, rax
call fcn.004078b1
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x0043e28c], eax
mov r14d, eax
test r14d, r14d
je 0x4040b1
cmp dword [0x0042a148], 1
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.00403ca7
test eax, eax
jne 0x404022
mov ecx, 1
call fcn.00403c17
jmp 0x404133
cmp dword [0x0042a148], 0
jne 0x4040d5
mov r8d, 0x1c
mov rdx, rbp
mov rcx, r15
call fcn.004073ca
mov eax, dword [rsp + 0x24]
test eax, 0xfffffff0
jne 0x4040e2
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x4040e2
cmp dword [rsp + 0x34], 0x74736e49
jne 0x4040e2
cmp dword [rsp + 0x30], 0x74666f73
jne 0x4040e2
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x4040e2
mov edx, dword [0x0043e288]
or esi, eax
mov eax, esi
mov dword [0x0042a148], edx
mov rdx, qword [0x0040d0b0]
and eax, 2
or dword [rdx + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp eax, r14d
ja 0x404133
test sil, 8
jne 0x4040c6
test sil, 4
je 0x4040c6
mov ecx, 1
call fcn.00403c17
cmp dword [0x0042a148], 0
jne 0x40410a
jmp 0x404133
lea r14d, [rax - 4]
inc edi
cmp ebx, r14d
cmova ebx, r14d
jmp 0x4040e2
test sil, 2
jne 0x4040e2
xor ecx, ecx
call fcn.00403c17
cmp dword [0x0043e28c], r14d
jbe 0x4040fc
mov ecx, r13d
mov r8d, ebx
mov rdx, rbp
call fcn.004085e0
mov r13d, eax
add dword [0x0043e288], ebx
sub r14d, ebx
jmp 0x403fe0
test edi, edi
je 0x40413f
mov ecx, dword [0x0043e288]
call fcn.00403cb9
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.00403ca7
test eax, eax
je 0x404133
cmp dword [rsp + 0x20], r13d
je 0x40413f
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 0x4041dd
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x0042a148]
lea ecx, [rax + 0x1c]
call fcn.00403cb9
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.00403ccf
cmp eax, dword [rsp + 0x38]
jne 0x404133
mov qword [0x0042a150], rbx
mov eax, dword [rbx]
mov dword [0x0042a14c], eax
test byte [rsp + 0x24], 1
je 0x404194
inc dword [0x0042a144]
mov eax, 8
sub eax, 1
jb 0x4041ab
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x404199
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, [0x0042a160]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.004073ca
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret