Function at 0x403466
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x3e8
push ecx
mov dword [0x42f998], eax
push 0x400
push 0x439c00
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push 0x439c00
call fcn.004067a8
mov dword [ebp - 0x30], eax
mov dword [0x409010], eax
pop edx
inc eax
mov edx, 0x40a149
je 0x403709
push esi
push esi
push 0x439c00
push 0x438c00
call fcn.0040631c
push ebx
push 0x438c00
call fcn.004062aa
sub esp, 0xc
push eax
push 0x43a000
call fcn.0040631c
push 0
push dword [ebp - 0x30]
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x38], 0
mov esi, eax
add esp, 0x18
mov dword [0x420c70], eax
mov dword [ebp - 0x34], 0
jmp 0x403617
mov edx, dword [0x42f9c8]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x403527
mov ebx, eax
push ecx
push ecx
push ebx
push 0x418c60
call fcn.00403140
pop ecx
test eax, eax
pop edx
jne 0x403551
sub esp, 0xc
push 1
call fcn.004033e6
mov edx, 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
add esp, 0x10
jmp 0x403709
cmp dword [0x42f9c8], 0
jne 0x4035df
lea eax, [ebp - 0x2c]
push edx
push 0x1c
push 0x418c60
push eax
call fcn.00405fc7
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x4035f4
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x4035f4
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x4035f4
cmp dword [ebp - 0x20], 0x74666f73
jne 0x4035f4
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x4035f4
mov eax, dword [0x420c80]
or edi, edx
mov dword [0x42f9c8], eax
mov eax, edi
and eax, 2
or dword [0x42f908], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x403704
test edi, 8
jne 0x4035d1
test edi, 4
jne 0x40361f
lea esi, [eax - 4]
inc dword [ebp - 0x34]
cmp ebx, esi
jbe 0x4035f4
mov ebx, esi
jmp 0x4035f4
test edi, 2
jne 0x4035f4
sub esp, 0xc
push 0
call fcn.004033e6
add esp, 0x10
cmp esi, dword [0x420c70]
jge 0x40360f
push eax
push ebx
push 0x418c60
push dword [ebp - 0x38]
call fcn.00406dc4
mov dword [ebp - 0x38], eax
pop eax
add dword [0x420c80], ebx
sub esi, ebx
test esi, esi
jg 0x40350a
sub esp, 0xc
push 1
call fcn.004033e6
add esp, 0x10
mov edx, 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 [0x42f9c8], 0
je 0x403709
cmp dword [ebp - 0x34], 0
je 0x403677
sub esp, 0xc
push dword [0x420c80]
call fcn.00403124
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.00403140
add esp, 0x18
test eax, eax
je 0x403704
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jne 0x403704
push eax
push eax
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
push eax
mov eax, dword [0x42f9c8]
add eax, 0x1c
push eax
call fcn.00403124
add esp, 0xc
push dword [ebp - 0x18]
push ebx
push 0
push 0xffffffffffffffff
call fcn.00403179
mov edx, 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 eax, dword [ebp - 0x18]
jne 0x403709
mov dword [0x42f948], ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx]
and edx, 1
mov dword [0x42f9a8], eax
cmp edx, 1
mov eax, dword [0x42f9b8]
sbb eax, 0xffffffff
mov dword [0x42f9b8], eax
mov eax, 8
add dword [ebx + eax*8 - 4], ebx
dec eax
jne 0x4036d6
push 1
push 0
push 0
push dword [ebp - 0x30]
call sub.KERNEL32.dll_SetFilePointer
mov dword [ebx + 0x3c], eax
push eax
lea eax, [ebx + 4]
push 0x40
push eax
push 0x42f958
call fcn.00405fc7
xor edx, edx
pop edi
jmp 0x403709
mov edx, 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
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4