Function at 0x4034f5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov edi, 0x447800
push edi
add eax, 0x3e8
push ebx
mov dword [0x439d94], eax
mov dword [0x439d9c], ebx
mov dword [0x439d80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00405fc8
mov dword [ebp - 0x10], eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
jne 0x40355a
mov eax, str.Error_launching_installer
jmp 0x4038fc
push esi
push edi
mov esi, 0x445800
push esi
call fcn.00406335
push esi
call fcn.0040661f
push eax
push 0x448000
call fcn.00406335
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x4309c0], eax
mov esi, eax
cmp eax, ebx
jbe 0x403687
mov eax, dword [0x439da4]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov ebx, esi
cmp esi, eax
jb 0x4035ac
mov ebx, eax
push ebx
push 0x4209b8
call fcn.0040311b
test eax, eax
je 0x4037ec
cmp dword [0x439da4], 0
jne 0x403650
push 0x24
push 0x4209b8
lea eax, [ebp - 0x34]
push eax
call fcn.00405f7e
mov eax, dword [ebp - 0x34]
test eax, 0xffffff00
jne 0x40365e
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x40365e
cmp dword [ebp - 0x24], 0x74736e49
jne 0x40365e
cmp dword [ebp - 0x28], 0x74666f73
jne 0x40365e
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x40365e
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x42092c]
and eax, 2
or dword [0x439e20], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x439da4], ecx
cmp eax, esi
ja 0x4038b6
test byte [ebp + 8], 8
jne 0x40363c
test byte [ebp + 8], 4
jne 0x403685
inc dword [ebp - 4]
inc dword [0x439d80]
lea esi, [eax - 4]
cmp ebx, esi
jbe 0x40365e
mov ebx, esi
jmp 0x40365e
test byte [ebp + 8], 2
jne 0x40365e
push 0
call fcn.004030b7
pop ecx
cmp esi, dword [0x4309c0]
jae 0x403677
push ebx
push 0x4209b8
push dword [ebp - 0xc]
call fcn.00406cfc
mov dword [ebp - 0xc], eax
add dword [0x42092c], ebx
sub esi, ebx
jne 0x403591
xor ebx, ebx
test byte [ebp - 0x34], 1
je 0x403693
inc dword [0x439d98]
test byte [ebp - 0x34], 0x40
je 0x40369f
inc dword [0x439d9c]
test byte [ebp - 0x34], 0x80
je 0x4036ab
inc dword [0x439d90]
cmp dword [0x439d9c], ebx
je 0x403731
cmp dword [0x439d98], ebx
jne 0x403731
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x439d88], eax
push edi
lea eax, [ebp - 0x864]
push eax
mov dword [0x439d8c], ecx
call fcn.00406335
lea eax, [ebp - 0x864]
push eax
call fcn.0040664c
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00406335
lea eax, [ebp - 0x864]
push eax
push 0x4082b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
lea eax, [ebp - 0x864]
push eax
call fcn.00405fc8
mov dword [0x40a014], eax
cmp eax, 0xffffffff
jne 0x403731
cmp dword [0x439d90], ebx
je 0x4038b6
push 1
call fcn.004030b7
pop ecx
cmp dword [0x439da4], ebx
je 0x4038b6
cmp dword [ebp - 4], ebx
je 0x403885
cmp dword [0x439d9c], ebx
je 0x403863
cmp dword [0x439d90], ebx
je 0x403863
cmp dword [0x439d98], ebx
jne 0x403863
mov eax, dword [0x42092c]
add eax, 0xfffffffc
push eax
call fcn.00403177
push 4
push 0x439d34
call fcn.0040311b
test eax, eax
je 0x4038b6
cmp dword [0x40a014], 0xffffffff
je 0x403863
mov eax, dword [0x439d88]
mov ecx, dword [0x439d8c]
mov dword [0x4309c8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [0x4309cc], ecx
mov ebx, ecx
call fcn.00407067
pop ecx
pop ecx
test ebx, ebx
ja 0x4037d3
cmp dword [ebp - 8], 0
jbe 0x403847
mov edi, 0x4289b8
test ebx, ebx
ja 0x4037f9
jb 0x4037e7
cmp dword [ebp - 8], 0x8000
jae 0x4037f9
mov esi, dword [ebp - 8]
jmp 0x4037fe
push 1
call fcn.004030b7
pop ecx
jmp 0x4038b6
mov esi, 0x8000
push esi
push edi
call fcn.004031a6
test eax, eax
je 0x4038b6
test byte [ebp + 8], 2
jne 0x40381b
push 0
call fcn.004030b7
pop ecx
push esi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004070ae
xor eax, eax
add esp, 0xc
add dword [0x4309b8], esi
adc dword [0x4309bc], eax
sub dword [ebp - 8], esi
sbb ebx, eax
test ebx, ebx
ja 0x4037f9
jb 0x403847
cmp dword [ebp - 8], eax
ja 0x4037d8
push 1
call fcn.004030b7
lea eax, [ebp - 0x64]
push eax
call fcn.00407298
pop ecx
pop ecx
cmp dword [0x439d34], eax
jne 0x4038b6
xor ebx, ebx
push dword [0x42092c]
call fcn.00403177
push 4
lea eax, [ebp + 8]
push eax
call fcn.0040311b
test eax, eax
je 0x4038b6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4038b6
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x439da4]
add eax, 0x24
push eax
call fcn.00403177
push ebx
push dword [ebp - 0x20]
push esi
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.0040324a
cmp eax, dword [ebp - 0x20]
je 0x4038bd
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
jmp 0x4038fb
mov dword [0x439d30], esi
mov eax, dword [esi]
push 8
mov dword [0x439da0], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4038d0
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.00403131
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x439d40
call fcn.00405f7e
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4