Function at 0x403599
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.004070f5
mov dword [0x417010], eax
cmp eax, 0xffffffff
je 0x403733
mov esi, eax
lea ebx, [ebp + 0xb800]
push edi
push ebx
call fcn.00406dbf
lea edi, [ebp + 0xe000]
push ebx
call fcn.00406ddb
push eax
push edi
call fcn.00406dbf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x4199a4], eax
test eax, eax
je 0x40373d
mov esi, eax
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x244]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4219a8], 0
mov ebp, 0x200
je 0x403650
mov ebp, 0x8000
cmp esi, ebp
cmovb ebp, esi
push ebp
push 0x4199a8
push dword [0x417010]
call fcn.00407195
test eax, eax
je 0x4038a4
cmp dword [0x4219a8], 0
je 0x403688
test bl, 2
jne 0x4036f9
push 0
call fcn.004034d5
add esp, 4
jmp 0x4036f9
push 0x1c
push 0x4199a8
lea eax, [esp + 0x14]
push eax
call fcn.004070d1
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja 0x4036f9
movdqu xmm0, xmmword [esp + 0x10]
pcmpeqd xmm0, xmmword [0x40a190]
movmskps ecx, xmm0
xor ecx, 0xf
test cl, cl
jne 0x4036f9
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 0x4038be
mov eax, ebx
and eax, 0xc
cmp eax, 4
je 0x403725
add edi, 0xfffffffc
cmp ebp, edi
jb 0x4036f3
mov ebp, edi
inc dword [esp + 4]
jmp 0x4036fb
mov edi, esi
cmp edi, dword [0x4199a4]
jae 0x403715
push ebp
push 0x4199a8
push dword [esp + 8]
call fcn.00407ae4
mov dword [esp], eax
add dword [0x4219ac], ebp
sub edi, ebp
mov esi, edi
jne 0x40363d
cmp dword [esp + 4], 0
sete bl
mov ebp, dword [esp + 8]
jmp 0x403746
mov edi, 0x40a220
jmp 0x4038ca
mov bl, 1
mov dword [esp], 0
mov eax, dword [0x41999c]
test eax, eax
je 0x403756
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
je 0x4038ca
test bl, bl
jne 0x4037b3
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.00407195
test eax, eax
je 0x4038ca
mov eax, dword [esp]
cmp eax, dword [esp + 0x28]
jne 0x4038ca
push dword [esp + 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov ecx, 0x4219b0
call fcn.00407b50
add ebp, 0xc800
lea ebx, [esp + 0x28]
push ebp
push ebx
call fcn.00407127
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 0x4038c5
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 + 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 [0x421a3c], eax
push ebp
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403906
cmp eax, dword [esp + 0x20]
jne 0x4038ca
mov dword [0x419998], esi
mov eax, dword [esi]
mov dword [0x421a40], eax
test byte [esp + 0xc], 1
je 0x403876
inc dword [0x421a44]
mov eax, 0x3c
add dword [esi + eax], esi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x40387b
mov eax, dword [0x421a48]
mov ecx, esi
add ecx, 4
mov dword [esi + 0x3c], eax
push 0x40
push ecx
push 0x421a4c
call fcn.004070d1
xor edi, edi
jmp 0x4038ca
mov eax, dword [0x41999c]
test eax, eax
je 0x4038b4
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 0x4038ca
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