Function at 0x4034d8
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 [0x4199a8], eax
mov eax, dword [0x40a174]
mov esi, dword [eax]
lea edi, [esi + 0xd800]
push 0x400
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00406f62
mov dword [0x417010], eax
cmp eax, 0xffffffff
je 0x403666
mov ebp, eax
lea ebx, [esi + 0xb800]
push edi
push ebx
call fcn.00406c2f
add esi, 0xe000
push ebx
call fcn.00406c4b
push eax
push esi
call fcn.00406c2f
push 0
mov dword [esp + 0xc], ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x4199a0], eax
test eax, eax
je 0x403670
mov ebp, eax
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4219ac], 0
mov esi, 0x200
je 0x403589
mov esi, 0x8000
cmp ebp, esi
cmovb esi, ebp
push esi
push 0x4199ac
push dword [0x417010]
call fcn.00407002
test eax, eax
je 0x40377b
cmp dword [0x4219ac], 0
je 0x4035c3
mov edi, ebx
test bl, 2
jne 0x403636
push 0
call fcn.00403475
add esp, 4
jmp 0x403636
push 0x1c
push 0x4199ac
lea eax, [esp + 0x18]
push eax
call fcn.00406f3e
movdqu xmm0, xmmword [esp + 0x14]
pcmpeqd xmm0, xmmword [0x40a190]
movmskps eax, xmm0
cmp eax, 0xf
jne 0x403634
mov eax, dword [esp + 0x10]
cmp eax, 0xf
ja 0x403634
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40a3b4]
or dword [ecx + 0x20], eax
mov eax, dword [0x41999c]
mov dword [0x4219ac], eax
mov eax, ebx
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
ja 0x403795
mov edi, eax
and eax, 0xc
cmp eax, 4
je 0x40367f
add ebx, 0xfffffffc
cmp esi, ebx
jb 0x40362e
mov esi, ebx
inc dword [esp + 4]
jmp 0x403638
mov edi, ebx
mov ebx, ebp
cmp ebx, dword [0x4199a0]
jae 0x403652
push esi
push 0x4199ac
push dword [esp + 8]
call fcn.00407950
mov dword [esp], eax
add dword [0x41999c], esi
sub ebx, esi
mov ebp, ebx
mov ebx, edi
jne 0x403576
jmp 0x40367f
mov ebx, 0x40a1d4
jmp 0x40379a
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x4199a4]
test eax, eax
je 0x40368f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4199a4], 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 [0x4219ac], 0
mov ebp, dword [esp + 8]
je 0x40379a
cmp dword [esp + 4], 0
je 0x4036f3
xor eax, eax
push eax
push eax
push dword [0x41999c]
push dword [0x417010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push 4
push eax
push dword [0x417010]
call fcn.00407002
test eax, eax
je 0x40379a
mov eax, dword [esp]
cmp eax, dword [esp + 0xc]
jne 0x40379a
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x4219ac]
add eax, 0x1c
xor esi, esi
push esi
push esi
push eax
push dword [0x417010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x24]
push edi
push esi
push 0xffffffffffffffff
call fcn.004037d3
cmp eax, dword [esp + 0x24]
jne 0x40379a
mov dword [0x4219b0], edi
mov eax, dword [edi]
mov dword [0x4219b4], eax
test byte [esp + 0x10], 1
je 0x403747
inc dword [0x4219b8]
mov eax, 0x3c
add dword [edi + eax], edi
add eax, 0xfffffff8
cmp eax, 0xfffffffc
jne 0x40374c
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 0x4219bc
call fcn.00406f3e
jmp 0x40379a
mov eax, dword [0x4199a4]
test eax, eax
je 0x40378b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4199a4], 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