Function at 0x403781
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, 0x400
xor ecx, ecx
add eax, 0x3e8
mov dword [0x0043bf90], eax
mov rax, qword [0x0040bbf0]
mov rbx, qword [rax]
lea rbp, [rbx + 0xd800]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, rbp
call fcn.00406b58
mov rdi, rax
mov qword [0x0040a020], rax
lea rax, [0x0040b32e]
cmp rdi, 0xffffffffffffffff
je 0x403a40
lea r12, [rbx + 0xb800]
mov rdx, rbp
lea r15, [rsp + 0x24]
xor ebp, ebp
mov rcx, r12
lea r13, [0x0043bf94]
call fcn.00406f90
mov rcx, r12
xor r12d, r12d
call fcn.00406968
lea rcx, [rbx + 0xe000]
mov rdx, rax
call fcn.00406f90
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x004354b4], eax
mov r14d, eax
test r14d, r14d
jle 0x403915
cmp dword [r13], 1
lea rcx, [0x004238a0]
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovle ebx, r14d
mov edx, ebx
call fcn.004034e4
test eax, eax
jne 0x403886
mov ecx, 1
call fcn.00403455
jmp 0x40399a
cmp dword [r13], 0
jne 0x40393a
mov r8d, 0x1c
lea rdx, [0x004238a0]
mov rcx, r15
call fcn.00406abd
mov eax, dword [rsp + 0x24]
test eax, 0xfffffff0
jne 0x403947
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x403947
cmp dword [rsp + 0x34], 0x74736e49
jne 0x403947
cmp dword [rsp + 0x30], 0x74666f73
jne 0x403947
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x403947
mov edx, dword [0x004354b0]
or esi, eax
mov eax, esi
mov dword [r13], edx
mov rdx, qword [0x0040bb60]
and eax, 2
or dword [rdx + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp eax, r14d
jg 0x40399a
test sil, 8
jne 0x40392a
test sil, 4
je 0x40392a
mov ecx, 1
call fcn.00403455
cmp dword [0x0043bf94], 0
jne 0x403971
jmp 0x40399a
lea r14d, [rax - 4]
inc r12d
cmp ebx, r14d
cmova ebx, r14d
jmp 0x403947
test sil, 2
jne 0x403947
xor ecx, ecx
call fcn.00403455
cmp dword [0x004354b4], r14d
jle 0x403963
mov ecx, ebp
mov r8d, ebx
lea rdx, [0x004238a0]
call fcn.004078c0
mov ebp, eax
add dword [0x004354b0], ebx
sub r14d, ebx
jmp 0x403842
test r12d, r12d
je 0x4039a6
mov ecx, dword [0x004354b0]
call fcn.004034f6
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.004034e4
test eax, eax
je 0x40399a
cmp dword [rsp + 0x20], ebp
je 0x4039a6
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 0x403a40
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x0043bf94]
lea ecx, [rax + 0x1c]
call fcn.004034f6
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.0040350c
cmp eax, dword [rsp + 0x38]
jne 0x40399a
mov qword [0x0043bf88], rbx
mov eax, dword [rbx]
mov dword [0x0043bf80], eax
test byte [rsp + 0x24], 1
je 0x4039fb
inc dword [0x0043bf84]
xor eax, eax
sub rax, 0xc
cmp rax, 0xffffffffffffff94
je 0x403a0e
add qword [rbx + rax + 0x64], rbx
jmp 0x4039fd
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, [0x0043bf20]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.00406abd
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret