Function at 0x403a70
Capabilities:
Get file size

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [0x42c19c], eax
mov eax, dword [0x40ae14]
mov esi, dword [eax]
lea edi, [esi + 0x6c000]
push 0x2000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.0040763b
mov dword [0x418010], eax
cmp eax, 0xffffffff
je 0x403c0f
mov ebp, eax
lea ebx, [esi + 0x5c000]
push edi
push ebx
call fcn.004072c6
add esi, 0x70000
push ebx
call fcn.004072e2
push eax
push esi
call fcn.004072c6
push 0
mov dword [esp + 0xc], ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x42c194], eax
test eax, eax
je 0x403c19
mov ebp, eax
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4341a0], 0
mov esi, 0x200
je 0x403b21
mov esi, 0x8000
cmp ebp, esi
cmovb esi, ebp
push esi
push 0x42c1a0
push dword [0x418010]
call fcn.004076db
test eax, eax
je 0x403d17
cmp dword [0x4341a0], 0
je 0x403b5f
mov edi, ebx
test bl, 2
jne 0x403bd4
push 0
call fcn.00403a0d
add esp, 4
jmp 0x403bd4
push 0x1c
push 0x42c1a0
lea eax, [esp + 0x18]
push eax
call fcn.00407617
mov eax, dword [esp + 0x10]
cmp eax, 0xf
ja 0x403bd2
movdqu xmm0, xmmword [esp + 0x14]
pcmpeqd xmm0, xmmword [0x40ae30]
movmskps ecx, xmm0
xor ecx, 0xf
test cl, cl
jne 0x403bd2
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40b054]
or dword [ecx + 0x20], eax
mov eax, dword [0x42c190]
mov dword [0x4341a0], eax
mov eax, ebx
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
ja 0x403d31
mov edi, eax
and eax, 0xc
cmp eax, 4
je 0x403c02
add ebx, 0xfffffffc
cmp esi, ebx
jb 0x403bcc
mov esi, ebx
inc dword [esp + 4]
jmp 0x403bd6
mov edi, ebx
mov ebx, ebp
cmp ebx, dword [0x42c194]
jae 0x403bf0
push esi
push 0x42c1a0
push dword [esp + 8]
call fcn.004082a8
mov dword [esp], eax
add dword [0x42c190], esi
sub ebx, esi
mov ebp, ebx
mov ebx, edi
jne 0x403b0e
cmp dword [esp + 4], 0
sete cl
mov esi, dword [esp]
jmp 0x403c1d
mov ebx, 0x40ae74
jmp 0x403d36
mov cl, 1
xor esi, esi
mov eax, dword [0x42c198]
test eax, eax
mov ebp, dword [esp + 8]
je 0x403c35
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, ebx
mov dword [0x42c198], 0
mov ebx, 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 [0x4341a0], 0
je 0x403d36
test cl, cl
jne 0x403c8f
xor eax, eax
push eax
push eax
push dword [0x42c190]
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push 4
push eax
push dword [0x418010]
call fcn.004076db
test eax, eax
je 0x403d36
cmp esi, dword [esp + 0xc]
jne 0x403d36
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x4341a0]
add eax, 0x1c
xor esi, esi
push esi
push esi
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x24]
push edi
push esi
push 0xffffffffffffffff
call fcn.00403d6f
cmp eax, dword [esp + 0x24]
jne 0x403d36
mov dword [0x4341a4], edi
mov eax, dword [edi]
mov dword [0x4341a8], eax
test byte [esp + 0x10], 1
je 0x403ce3
inc dword [0x4341ac]
mov eax, 0x3c
add dword [edi + eax], edi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x403ce8
xor ebx, ebx
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
add ecx, 4
mov dword [edi + 0x3c], eax
push 0x40
push ecx
push 0x4341b0
call fcn.00407617
jmp 0x403d36
mov eax, dword [0x42c198]
test eax, eax
je 0x403d27
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c198], 0
mov ebx, 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
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4