Function at 0x403ae5
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 [0x42c1a4], 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.004077e2
mov dword [0x418010], eax
cmp eax, 0xffffffff
je 0x403c7f
mov esi, eax
lea ebx, [ebp + 0x5c000]
push edi
push ebx
call fcn.0040746d
lea edi, [ebp + 0x70000]
push ebx
call fcn.00407489
push eax
push edi
call fcn.0040746d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x42c1a8], eax
test eax, eax
je 0x403c89
mov esi, eax
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x244]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4341ac], 0
mov ebp, 0x200
je 0x403b9c
mov ebp, 0x8000
cmp esi, ebp
cmovb ebp, esi
push ebp
push 0x42c1ac
push dword [0x418010]
call fcn.00407882
test eax, eax
je 0x403df0
cmp dword [0x4341ac], 0
je 0x403bd4
test bl, 2
jne 0x403c45
push 0
call fcn.00403a21
add esp, 4
jmp 0x403c45
push 0x1c
push 0x42c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004077be
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja 0x403c45
movdqu xmm0, xmmword [esp + 0x10]
pcmpeqd xmm0, xmmword [0x40ae30]
movmskps ecx, xmm0
xor ecx, 0xf
test cl, cl
jne 0x403c45
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40b114]
or dword [ecx + 0x20], eax
mov eax, dword [0x4341b0]
mov dword [0x4341ac], eax
mov edi, dword [esp + 0x24]
cmp edi, esi
ja 0x403e0a
mov eax, ebx
and eax, 0xc
cmp eax, 4
je 0x403c71
add edi, 0xfffffffc
cmp ebp, edi
jb 0x403c3f
mov ebp, edi
inc dword [esp + 4]
jmp 0x403c47
mov edi, esi
cmp edi, dword [0x42c1a8]
jae 0x403c61
push ebp
push 0x42c1ac
push dword [esp + 8]
call fcn.00408460
mov dword [esp], eax
add dword [0x4341b0], ebp
sub edi, ebp
mov esi, edi
jne 0x403b89
cmp dword [esp + 4], 0
sete bl
mov ebp, dword [esp + 8]
jmp 0x403c92
mov edi, 0x40aec0
jmp 0x403e16
mov bl, 1
mov dword [esp], 0
mov eax, dword [0x42c1a0]
test eax, eax
je 0x403ca2
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c1a0], 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 [0x4341ac], 0
je 0x403e16
test bl, bl
jne 0x403cff
xor eax, eax
push eax
push eax
push dword [0x4341b0]
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x28]
push 4
push eax
push dword [0x418010]
call fcn.00407882
test eax, eax
je 0x403e16
mov eax, dword [esp]
cmp eax, dword [esp + 0x28]
jne 0x403e16
push dword [esp + 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov ecx, 0x4341b4
call fcn.004084cc
add ebp, 0x64000
lea ebx, [esp + 0x28]
push ebp
push ebx
call fcn.00407814
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 0x403e11
mov eax, dword [0x4341ac]
add eax, 0x1c
xor ebx, ebx
push ebx
push ebx
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x43423c], 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 [0x434240], eax
push ebp
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403e52
cmp eax, dword [esp + 0x20]
jne 0x403e16
mov dword [0x42c19c], esi
mov eax, dword [esi]
mov dword [0x434244], eax
test byte [esp + 0xc], 1
je 0x403dc2
inc dword [0x434248]
mov eax, 0x3c
add dword [esi + eax], esi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x403dc7
mov eax, dword [0x43424c]
mov ecx, esi
add ecx, 4
mov dword [esi + 0x3c], eax
push 0x40
push ecx
push 0x434250
call fcn.004077be
xor edi, edi
jmp 0x403e16
mov eax, dword [0x42c1a0]
test eax, eax
je 0x403e00
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c1a0], 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 0x403e16
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