Function at 0x403510
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
push 0x42cc00
add eax, 0x3e8
push ebp
mov dword [0x425c20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x42cc00
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
sub ecx, 0xffffffff
push ebp
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 3
push ebp
push 1
push 0x80000000
push 0x42cc00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [0x40b088], esi
jne 0x40358f
mov eax, str.Error_launching_installer
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x400
push 0x42cc00
push 0x42bc00
call edi
push 0x42bc00
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.USER32.dll_CharPrevA]
add eax, 0x42bc00
lea esp, [esp]
cmp byte [eax], 0x5c
je 0x4035d4
push eax
push 0x42bc00
call ebx
cmp eax, 0x42bc00
ja 0x4035c0
mov byte [eax], 0
push 0x400
add eax, 1
push eax
push 0x42d000
call edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov ebp, dword [0x425c30]
mov dword [0x421174], eax
mov ebx, eax
jle 0x403791
neg ebp
sbb ebp, ebp
and ebp, 0x7e00
add ebp, 0x200
cmp ebx, ebp
jge 0x403620
mov edi, ebx
mov dword [esp + 0x10], edi
jmp 0x403626
mov dword [esp + 0x10], ebp
mov edi, ebp
mov eax, dword [0x40b088]
push 0
lea edx, [esp + 0x20]
push edx
push edi
push 0x4190e8
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038a6
cmp dword [esp + 0x1c], edi
jne 0x4038a6
mov ebp, dword [0x425c30]
test ebp, ebp
jne 0x40370e
mov ecx, 7
mov esi, 0x4190e8
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4190e8]
test ecx, 0xfffffff0
jne 0x403760
cmp dword [0x4190ec], 0xdeadbeef
jne 0x403760
cmp dword [0x4190f8], 0x74736e49
jne 0x403760
cmp dword [0x4190f4], 0x74666f73
jne 0x403760
cmp dword [0x4190f0], 0x6c6c754e
jne 0x403760
mov eax, dword [esp + 0x44]
mov ebp, dword [0x421170]
or eax, ecx
mov ecx, eax
and ecx, 2
or dword [0x425ca0], ecx
mov ecx, dword [0x419100]
cmp ecx, ebx
mov dword [0x425c30], ebp
mov dword [esp + 0x44], eax
jg 0x4038c0
test al, 8
jne 0x4036fc
test al, 4
jne 0x403791
add dword [esp + 0x14], 1
lea ebx, [ecx - 4]
cmp dword [esp + 0x10], ebx
jbe 0x403760
mov edi, ebx
jmp 0x403764
test byte [esp + 0x44], 2
jne 0x403764
cmp dword [0x40d0e4], 0
je 0x40372d
xor esi, esi
call fcn.00407a00
mov ebp, dword [0x425c30]
jmp 0x403764
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x425c20]
jbe 0x403725
mov edx, dword [0x425bc8]
push 0
push 0x403480
push 0
push 0x6f
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebp, dword [0x425c30]
mov dword [0x40d0e4], eax
jmp 0x403764
mov edi, dword [esp + 0x10]
cmp ebx, dword [0x421174]
jge 0x403781
mov eax, dword [esp + 0x18]
push eax
mov eax, edi
mov ecx, 0x4190e8
call fcn.004013e0
mov dword [esp + 0x18], eax
add dword [0x421170], edi
sub ebx, edi
test ebx, ebx
jg 0x403604
mov eax, dword [0x40d0e4]
test eax, eax
je 0x4037a7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ebp, dword [0x425c30]
test ebp, ebp
mov dword [0x40d0e4], 0
je 0x4038c0
cmp dword [esp + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x403816
mov ecx, dword [0x421170]
mov edx, dword [0x40b088]
push 0
push 0
push ecx
push edx
call ebx
mov edx, dword [0x40b088]
push 0
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038c0
cmp dword [esp + 0x44], 4
jne 0x4038c0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
jne 0x4038c0
mov edi, dword [esp + 0x38]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x425c30]
mov edx, dword [0x40b088]
push 0
push 0
add ecx, 0x1c
push ecx
push edx
mov esi, eax
call ebx
push edi
push esi
push 0
push 0xffffffffffffffff
call fcn.004038f0
cmp eax, edi
jne 0x4038c0
test byte [esp + 0x24], 1
mov eax, dword [esi]
mov dword [0x425bcc], esi
mov dword [0x425c28], eax
je 0x403866
add dword [0x425c24], 1
mov ecx, 8
lea eax, [esi + 0x44]
mov edi, edi
add dword [eax - 8], esi
sub eax, 8
sub ecx, 1
test ecx, ecx
jne 0x403870
push 1
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call ebx
mov dword [esi + 0x3c], eax
add esi, 4
mov ecx, 0x10
mov edi, 0x425be0
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov eax, dword [0x40d0e4]
test eax, eax
je 0x4038b6
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x40d0e4], 0
pop edi
pop esi
pop ebp
mov eax, 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
pop ebx
add esp, 0x30
ret 4