Function at 0x40390a
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 [0x00417940], eax
mov rax, qword [0x0040c160]
mov rbx, qword [rax]
lea r13, [rbx + 0xd800]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 3
mov edx, 0x80000000
mov rcx, r13
call fcn.00406d21
mov r12, rax
mov qword [0x0040a020], rax
lea rax, [0x0040b32e]
cmp r12, 0xffffffffffffffff
je 0x403bc8
lea r14, [rbx + 0xb800]
mov rdx, r13
xor edi, edi
xor r13d, r13d
mov rcx, r14
lea rbp, [0x004239c0]
lea r15, [rsp + 0x24]
call fcn.00407161
mov rcx, r14
call fcn.00406b1f
lea rcx, [rbx + 0xe000]
mov rdx, rax
call fcn.00407161
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x004355d4], eax
mov r14d, eax
test r14d, r14d
je 0x403a9c
cmp dword [0x00417948], 1
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp r14d, ebx
cmovbe ebx, r14d
mov edx, ebx
call fcn.00403667
test eax, eax
jne 0x403a0d
mov ecx, 1
call fcn.004035d7
jmp 0x403b1e
cmp dword [0x00417948], 0
jne 0x403ac0
mov r8d, 0x1c
mov rdx, rbp
mov rcx, r15
call fcn.00406c7a
mov eax, dword [rsp + 0x24]
test eax, 0xfffffff0
jne 0x403acd
cmp dword [rsp + 0x28], 0xdeadbeef
jne 0x403acd
cmp dword [rsp + 0x34], 0x74736e49
jne 0x403acd
cmp dword [rsp + 0x30], 0x74666f73
jne 0x403acd
cmp dword [rsp + 0x2c], 0x6c6c754e
jne 0x403acd
mov edx, dword [0x004355d0]
or esi, eax
mov eax, esi
mov dword [0x00417948], edx
mov rdx, qword [0x0040c0d0]
and eax, 2
or dword [rdx + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp eax, r14d
ja 0x403b1e
test sil, 8
jne 0x403ab1
test sil, 4
je 0x403ab1
mov ecx, 1
call fcn.004035d7
cmp dword [0x00417948], 0
jne 0x403af5
jmp 0x403b1e
lea r14d, [rax - 4]
inc edi
cmp ebx, r14d
cmova ebx, r14d
jmp 0x403acd
test sil, 2
jne 0x403acd
xor ecx, ecx
call fcn.004035d7
cmp dword [0x004355d4], r14d
jbe 0x403ae7
mov ecx, r13d
mov r8d, ebx
mov rdx, rbp
call fcn.00407ad0
mov r13d, eax
add dword [0x004355d0], ebx
sub r14d, ebx
jmp 0x4039cb
test edi, edi
je 0x403b2a
mov ecx, dword [0x004355d0]
call fcn.00403679
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.00403667
test eax, eax
je 0x403b1e
cmp dword [rsp + 0x20], r13d
je 0x403b2a
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 0x403bc8
movsxd rdx, dword [rsp + 0x38]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov eax, dword [0x00417948]
lea ecx, [rax + 0x1c]
call fcn.00403679
mov r9d, dword [rsp + 0x38]
xor edx, edx
or ecx, 0xffffffff
mov r8, rbx
call fcn.0040368f
cmp eax, dword [rsp + 0x38]
jne 0x403b1e
mov qword [0x00417950], rbx
mov eax, dword [rbx]
mov dword [0x0041794c], eax
test byte [rsp + 0x24], 1
je 0x403b7f
inc dword [0x00417944]
mov eax, 8
sub eax, 1
jb 0x403b96
mov edx, eax
imul rdx, rdx, 0xc
add qword [rbx + rdx + 4], rbx
jmp 0x403b84
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, [0x00417960]
mov eax, eax
mov qword [rbx + 0x58], rax
call fcn.00406c7a
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret