Function at 0x403549
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 [0x4199a0], eax
mov eax, dword [0x40a174]
mov ebp, dword [eax]
lea edi, [ebp + 0xd800]
push 0x400
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.0040709a
mov dword [0x417010], eax
cmp eax, 0xffffffff
je 0x4036d5
mov esi, eax
lea ebx, [ebp + 0xb800]
push edi
push ebx
call fcn.00406d67
mov dword [esp + 8], ebp
lea edi, [ebp + 0xe000]
push ebx
call fcn.00406d83
push eax
push edi
call fcn.00406d67
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x4199a4], eax
test eax, eax
je 0x4036df
mov esi, eax
mov ebx, dword [esp + 0x244]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4219a8], 0
mov ebp, 0x200
je 0x403600
mov ebp, 0x8000
cmp esi, ebp
cmovb ebp, esi
push ebp
push 0x4199a8
push dword [0x417010]
call fcn.0040713a
test eax, eax
je 0x403850
cmp dword [0x4219a8], 0
je 0x403638
test bl, 2
jne 0x4036a7
push 0
call fcn.00403485
add esp, 4
jmp 0x4036a7
push 0x1c
push 0x4199a8
lea eax, [esp + 0x14]
push eax
call fcn.00407076
movdqu xmm0, xmmword [esp + 0x10]
pcmpeqd xmm0, xmmword [0x40a190]
movmskps eax, xmm0
cmp eax, 0xf
jne 0x4036a7
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja 0x4036a7
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40a474]
or dword [ecx + 0x20], eax
mov eax, dword [0x4219ac]
mov dword [0x4219a8], eax
mov edi, dword [esp + 0x24]
cmp edi, esi
ja 0x40386a
mov eax, ebx
and eax, 0xc
cmp eax, 4
je 0x4036ee
add edi, 0xfffffffc
cmp ebp, edi
jb 0x4036a1
mov ebp, edi
inc dword [esp + 4]
jmp 0x4036a9
mov edi, esi
cmp edi, dword [0x4199a4]
jae 0x4036c3
push ebp
push 0x4199a8
push dword [esp + 8]
call fcn.00407a88
mov dword [esp], eax
add dword [0x4219ac], ebp
sub edi, ebp
mov esi, edi
jne 0x4035ed
jmp 0x4036ee
mov edi, 0x40a220
jmp 0x403876
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x41999c]
test eax, eax
je 0x4036fe
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41999c], 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 [0x4219a8], 0
mov ebp, dword [esp + 8]
je 0x403876
cmp dword [esp + 4], 0
je 0x403762
xor eax, eax
push eax
push eax
push dword [0x4219ac]
push dword [0x417010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x28]
push 4
push eax
push dword [0x417010]
call fcn.0040713a
test eax, eax
je 0x403876
mov eax, dword [esp]
cmp eax, dword [esp + 0x28]
jne 0x403876
push dword [esp + 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov ecx, 0x4219b0
call fcn.00407af4
add ebp, 0xc800
lea ebx, [esp + 0x28]
push ebp
push ebx
call fcn.004070cc
sub esp, 0x1c
movaps xmm0, xmmword [0x40a1a0]
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 [0x417014], eax
cmp eax, 0xffffffff
je 0x403871
mov eax, dword [0x4219a8]
add eax, 0x1c
xor ebx, ebx
push ebx
push ebx
push eax
push dword [0x417010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421a38], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
or ecx, 0xfffffffb
add eax, dword [esp + 0x24]
add eax, ecx
add eax, 0xffffffe5
mov dword [0x421a3c], eax
push edx
push esi
push ebx
push 0xffffffffffffffff
call fcn.004038b2
cmp eax, dword [esp + 0x20]
jne 0x403876
mov dword [0x419998], esi
mov eax, dword [esi]
mov dword [0x421a40], eax
test byte [esp + 0xc], 1
je 0x403822
inc dword [0x421a44]
mov eax, 0x3c
add dword [esi + eax], esi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x403827
mov eax, dword [0x421a48]
mov ecx, esi
add ecx, 4
mov dword [esi + 0x3c], eax
push 0x40
push ecx
push 0x421a4c
call fcn.00407076
xor edi, edi
jmp 0x403876
mov eax, dword [0x41999c]
test eax, eax
je 0x403860
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41999c], 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 0x403876
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