Function at 0x40351e
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, 0x453800
push edi
add eax, 0x3e8
push ebx
mov dword [0x445a94], eax
mov dword [0x445a9c], ebx
mov dword [0x445a80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00405ff1
mov dword [ebp - 0x10], eax
mov dword [0x40b010], eax
cmp eax, 0xffffffff
jne 0x403583
mov eax, str.Error_launching_installer
jmp 0x403925
push esi
push edi
mov esi, 0x451800
push esi
call fcn.0040635e
push esi
call fcn.00406648
push eax
push 0x454000
call fcn.0040635e
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x43b538], eax
mov esi, eax
cmp eax, ebx
jbe 0x4036b0
mov eax, dword [0x445aa4]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov ebx, esi
cmp esi, eax
jb 0x4035d5
mov ebx, eax
push ebx
push 0x42b530
call fcn.0040311b
test eax, eax
je 0x403815
cmp dword [0x445aa4], 0
jne 0x403679
push 0x24
push 0x42b530
lea eax, [ebp - 0x34]
push eax
call fcn.00405fa7
mov eax, dword [ebp - 0x34]
test eax, 0xffffff00
jne 0x403687
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x403687
cmp dword [ebp - 0x24], 0x74736e49
jne 0x403687
cmp dword [ebp - 0x28], 0x74666f73
jne 0x403687
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x403687
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x42196c]
and eax, 2
or dword [0x445b20], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x445aa4], ecx
cmp eax, esi
ja 0x4038df
test byte [ebp + 8], 8
jne 0x403665
test byte [ebp + 8], 4
jne 0x4036ae
inc dword [ebp - 4]
inc dword [0x445a80]
lea esi, [eax - 4]
cmp ebx, esi
jbe 0x403687
mov ebx, esi
jmp 0x403687
test byte [ebp + 8], 2
jne 0x403687
push 0
call fcn.004030b7
pop ecx
cmp esi, dword [0x43b538]
jae 0x4036a0
push ebx
push 0x42b530
push dword [ebp - 0xc]
call fcn.00406d25
mov dword [ebp - 0xc], eax
add dword [0x42196c], ebx
sub esi, ebx
jne 0x4035ba
xor ebx, ebx
test byte [ebp - 0x34], 1
je 0x4036bc
inc dword [0x445a98]
test byte [ebp - 0x34], 0x40
je 0x4036c8
inc dword [0x445a9c]
test byte [ebp - 0x34], 0x80
je 0x4036d4
inc dword [0x445a90]
cmp dword [0x445a9c], ebx
je 0x40375a
cmp dword [0x445a98], ebx
jne 0x40375a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x445a88], eax
push edi
lea eax, [ebp - 0x864]
push eax
mov dword [0x445a8c], ecx
call fcn.0040635e
lea eax, [ebp - 0x864]
push eax
call fcn.00406675
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.0040635e
lea eax, [ebp - 0x864]
push eax
push 0x4092b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
lea eax, [ebp - 0x864]
push eax
call fcn.00405ff1
mov dword [0x40b014], eax
cmp eax, 0xffffffff
jne 0x40375a
cmp dword [0x445a90], ebx
je 0x4038df
push 1
call fcn.004030b7
pop ecx
cmp dword [0x445aa4], ebx
je 0x4038df
cmp dword [ebp - 4], ebx
je 0x4038ae
cmp dword [0x445a9c], ebx
je 0x40388c
cmp dword [0x445a90], ebx
je 0x40388c
cmp dword [0x445a98], ebx
jne 0x40388c
mov eax, dword [0x42196c]
add eax, 0xfffffffc
push eax
call fcn.00403177
push 4
push 0x445a34
call fcn.0040311b
test eax, eax
je 0x4038df
cmp dword [0x40b014], 0xffffffff
je 0x40388c
mov eax, dword [0x445a88]
mov ecx, dword [0x445a8c]
mov dword [0x43b540], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [0x43b544], ecx
mov ebx, ecx
call fcn.00407090
pop ecx
pop ecx
test ebx, ebx
ja 0x4037fc
cmp dword [ebp - 8], 0
jbe 0x403870
mov edi, 0x433530
test ebx, ebx
ja 0x403822
jb 0x403810
cmp dword [ebp - 8], 0x8000
jae 0x403822
mov esi, dword [ebp - 8]
jmp 0x403827
push 1
call fcn.004030b7
pop ecx
jmp 0x4038df
mov esi, 0x8000
push esi
push edi
call fcn.004031a6
test eax, eax
je 0x4038df
test byte [ebp + 8], 2
jne 0x403844
push 0
call fcn.004030b7
pop ecx
push esi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004070d7
xor eax, eax
add esp, 0xc
add dword [0x43b530], esi
adc dword [0x43b534], eax
sub dword [ebp - 8], esi
sbb ebx, eax
test ebx, ebx
ja 0x403822
jb 0x403870
cmp dword [ebp - 8], eax
ja 0x403801
push 1
call fcn.004030b7
lea eax, [ebp - 0x64]
push eax
call fcn.004072c1
pop ecx
pop ecx
cmp dword [0x445a34], eax
jne 0x4038df
xor ebx, ebx
push dword [0x42196c]
call fcn.00403177
push 4
lea eax, [ebp + 8]
push eax
call fcn.0040311b
test eax, eax
je 0x4038df
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4038df
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x445aa4]
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 0x4038e6
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 0x403924
mov dword [0x445a30], esi
mov eax, dword [esi]
push 8
mov dword [0x445aa0], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4038f9
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 0x445a40
call fcn.00405fa7
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4