Function at 0x4034f8
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, 0x7c6800
push edi
add eax, 0x3e8
push ebx
mov dword [0x7b85b4], eax
mov dword [0x7b85bc], ebx
mov dword [0x7b85a0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00405fcb
mov dword [ebp - 0x10], eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
jne 0x40355d
mov eax, str.Error_launching_installer
jmp 0x4038ff
push esi
push edi
mov esi, 0x7c4800
push esi
call fcn.00406338
push esi
call fcn.00406622
push eax
push 0x7c7000
call fcn.00406338
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x79f1f4], eax
mov esi, eax
cmp eax, ebx
jbe 0x40368a
mov eax, dword [0x7b85c4]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov ebx, esi
cmp esi, eax
jb 0x4035af
mov ebx, eax
push ebx
push 0x79f1f8
call fcn.0040311b
test eax, eax
je 0x4037ef
cmp dword [0x7b85c4], 0
jne 0x403653
push 0x24
push 0x79f1f8
lea eax, [ebp - 0x34]
push eax
call fcn.00405f81
mov eax, dword [ebp - 0x34]
test eax, 0xffffff00
jne 0x403661
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x403661
cmp dword [ebp - 0x24], 0x74736e49
jne 0x403661
cmp dword [ebp - 0x28], 0x74666f73
jne 0x403661
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x403661
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x42092c]
and eax, 2
or dword [0x7b8640], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x7b85c4], ecx
cmp eax, esi
ja 0x4038b9
test byte [ebp + 8], 8
jne 0x40363f
test byte [ebp + 8], 4
jne 0x403688
inc dword [ebp - 4]
inc dword [0x7b85a0]
lea esi, [eax - 4]
cmp ebx, esi
jbe 0x403661
mov ebx, esi
jmp 0x403661
test byte [ebp + 8], 2
jne 0x403661
push 0
call fcn.004030b7
pop ecx
cmp esi, dword [0x79f1f4]
jae 0x40367a
push ebx
push 0x79f1f8
push dword [ebp - 0xc]
call fcn.00406cff
mov dword [ebp - 0xc], eax
add dword [0x42092c], ebx
sub esi, ebx
jne 0x403594
xor ebx, ebx
test byte [ebp - 0x34], 1
je 0x403696
inc dword [0x7b85b8]
test byte [ebp - 0x34], 0x40
je 0x4036a2
inc dword [0x7b85bc]
test byte [ebp - 0x34], 0x80
je 0x4036ae
inc dword [0x7b85b0]
cmp dword [0x7b85bc], ebx
je 0x403734
cmp dword [0x7b85b8], ebx
jne 0x403734
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x7b85a8], eax
push edi
lea eax, [ebp - 0x864]
push eax
mov dword [0x7b85ac], ecx
call fcn.00406338
lea eax, [ebp - 0x864]
push eax
call fcn.0040664f
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00406338
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.00405fcb
mov dword [0x40a014], eax
cmp eax, 0xffffffff
jne 0x403734
cmp dword [0x7b85b0], ebx
je 0x4038b9
push 1
call fcn.004030b7
pop ecx
cmp dword [0x7b85c4], ebx
je 0x4038b9
cmp dword [ebp - 4], ebx
je 0x403888
cmp dword [0x7b85bc], ebx
je 0x403866
cmp dword [0x7b85b0], ebx
je 0x403866
cmp dword [0x7b85b8], ebx
jne 0x403866
mov eax, dword [0x42092c]
add eax, 0xfffffffc
push eax
call fcn.00403177
push 4
push 0x7b8554
call fcn.0040311b
test eax, eax
je 0x4038b9
cmp dword [0x40a014], 0xffffffff
je 0x403866
mov eax, dword [0x7b85a8]
mov ecx, dword [0x7b85ac]
mov dword [0x7af200], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [0x7af204], ecx
mov ebx, ecx
call fcn.0040706a
pop ecx
pop ecx
test ebx, ebx
ja 0x4037d6
cmp dword [ebp - 8], 0
jbe 0x40384a
mov edi, 0x7a71f8
test ebx, ebx
ja 0x4037fc
jb 0x4037ea
cmp dword [ebp - 8], 0x8000
jae 0x4037fc
mov esi, dword [ebp - 8]
jmp 0x403801
push 1
call fcn.004030b7
pop ecx
jmp 0x4038b9
mov esi, 0x8000
push esi
push edi
call fcn.004031a6
test eax, eax
je 0x4038b9
test byte [ebp + 8], 2
jne 0x40381e
push 0
call fcn.004030b7
pop ecx
push esi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004070b1
xor eax, eax
add esp, 0xc
add dword [0x7af1f8], esi
adc dword [0x7af1fc], eax
sub dword [ebp - 8], esi
sbb ebx, eax
test ebx, ebx
ja 0x4037fc
jb 0x40384a
cmp dword [ebp - 8], eax
ja 0x4037db
push 1
call fcn.004030b7
lea eax, [ebp - 0x64]
push eax
call fcn.0040729b
pop ecx
pop ecx
cmp dword [0x7b8554], eax
jne 0x4038b9
xor ebx, ebx
push dword [0x42092c]
call fcn.00403177
push 4
lea eax, [ebp + 8]
push eax
call fcn.0040311b
test eax, eax
je 0x4038b9
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4038b9
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x7b85c4]
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 0x4038c0
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 0x4038fe
mov dword [0x7b8550], esi
mov eax, dword [esi]
push 8
mov dword [0x7b85c0], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4038d3
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 0x7b8560
call fcn.00405f81
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4