Function at 0x403ae1
Capabilities:
Get file size

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x230
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [0x42c19c], eax
mov eax, dword [0x40ae14]
mov ebp, dword [eax]
lea edi, [ebp + 0x6c000]
push 0x2000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.004077a7
mov dword [0x418010], eax
cmp eax, 0xffffffff
je 0x403c7b
mov esi, eax
lea ebx, [ebp + 0x5c000]
push edi
push ebx
call fcn.00407432
lea edi, [ebp + 0x70000]
push ebx
call fcn.0040744e
push eax
push edi
call fcn.00407432
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x42c1a0], eax
test eax, eax
je 0x403c85
mov esi, eax
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x244]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4341a4], 0
mov ebp, 0x200
je 0x403b98
mov ebp, 0x8000
cmp esi, ebp
cmovb ebp, esi
push ebp
push 0x42c1a4
push dword [0x418010]
call fcn.00407847
test eax, eax
je 0x403dec
cmp dword [0x4341a4], 0
je 0x403bd0
test bl, 2
jne 0x403c41
push 0
call fcn.00403a1d
add esp, 4
jmp 0x403c41
push 0x1c
push 0x42c1a4
lea eax, [esp + 0x14]
push eax
call fcn.00407783
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja 0x403c41
movdqu xmm0, xmmword [esp + 0x10]
pcmpeqd xmm0, xmmword [0x40ae30]
movmskps ecx, xmm0
xor ecx, 0xf
test cl, cl
jne 0x403c41
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40b114]
or dword [ecx + 0x20], eax
mov eax, dword [0x4341a8]
mov dword [0x4341a4], eax
mov edi, dword [esp + 0x24]
cmp edi, esi
ja 0x403e06
mov eax, ebx
and eax, 0xc
cmp eax, 4
je 0x403c6d
add edi, 0xfffffffc
cmp ebp, edi
jb 0x403c3b
mov ebp, edi
inc dword [esp + 4]
jmp 0x403c43
mov edi, esi
cmp edi, dword [0x42c1a0]
jae 0x403c5d
push ebp
push 0x42c1a4
push dword [esp + 8]
call fcn.00408414
mov dword [esp], eax
add dword [0x4341a8], ebp
sub edi, ebp
mov esi, edi
jne 0x403b85
cmp dword [esp + 4], 0
sete bl
mov ebp, dword [esp + 8]
jmp 0x403c8e
mov edi, 0x40aec0
jmp 0x403e12
mov bl, 1
mov dword [esp], 0
mov eax, dword [0x42c198]
test eax, eax
je 0x403c9e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c198], 0
mov edi, 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
cmp dword [0x4341a4], 0
je 0x403e12
test bl, bl
jne 0x403cfb
xor eax, eax
push eax
push eax
push dword [0x4341a8]
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x28]
push 4
push eax
push dword [0x418010]
call fcn.00407847
test eax, eax
je 0x403e12
mov eax, dword [esp]
cmp eax, dword [esp + 0x28]
jne 0x403e12
push dword [esp + 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov ecx, 0x4341ac
call fcn.00408480
add ebp, 0x64000
lea ebx, [esp + 0x28]
push ebp
push ebx
call fcn.004077d9
sub esp, 0x1c
movaps xmm0, xmmword [0x40ae40]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000100
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x418014], eax
cmp eax, 0xffffffff
je 0x403e0d
mov eax, dword [0x4341a4]
add eax, 0x1c
xor ebx, ebx
push ebx
push ebx
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x434234], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x20]
or edx, 0xfffffffb
add edx, eax
lea eax, [ecx + edx]
add eax, 0xffffffe5
mov dword [0x434238], eax
push ebp
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403e4e
cmp eax, dword [esp + 0x20]
jne 0x403e12
mov dword [0x42c194], esi
mov eax, dword [esi]
mov dword [0x43423c], eax
test byte [esp + 0xc], 1
je 0x403dbe
inc dword [0x434240]
mov eax, 0x3c
add dword [esi + eax], esi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x403dc3
mov eax, dword [0x434244]
mov ecx, esi
add ecx, 4
mov dword [esi + 0x3c], eax
push 0x40
push ecx
push 0x434248
call fcn.00407783
xor edi, edi
jmp 0x403e12
mov eax, dword [0x42c198]
test eax, eax
je 0x403dfc
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c198], 0
mov edi, 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 0x403e12
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov eax, edi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret 4