Function at 0x403467
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 [0x7a3500], eax
push 0x400
push 0x7adc00
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push 0x7adc00
call fcn.004067c0
mov dword [ebp - 0x30], eax
mov dword [0x409010], eax
pop edx
inc eax
mov edx, 0x40a149
je 0x40370a
push esi
push esi
push 0x7adc00
push 0x7acc00
call fcn.00406334
push ebx
push 0x7acc00
call fcn.004062c2
sub esp, 0xc
push eax
push 0x7ae000
call fcn.00406334
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 0x403618
mov edx, dword [0x7a3530]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x403528
mov ebx, eax
push ecx
push ecx
push ebx
push 0x418c60
call fcn.0040316c
pop ecx
test eax, eax
pop edx
jne 0x403552
sub esp, 0xc
push 1
call fcn.004033e7
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 0x40370a
cmp dword [0x7a3530], 0
jne 0x4035e0
lea eax, [ebp - 0x2c]
push edx
push 0x1c
push 0x418c60
push eax
call fcn.00405fdf
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x4035f5
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x4035f5
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x4035f5
cmp dword [ebp - 0x20], 0x74666f73
jne 0x4035f5
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x4035f5
mov eax, dword [0x420c80]
or edi, edx
mov dword [0x7a3530], eax
mov eax, edi
and eax, 2
or dword [0x7a3470], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x403705
test edi, 8
jne 0x4035d2
test edi, 4
jne 0x403620
lea esi, [eax - 4]
inc dword [ebp - 0x34]
cmp ebx, esi
jbe 0x4035f5
mov ebx, esi
jmp 0x4035f5
test edi, 2
jne 0x4035f5
sub esp, 0xc
push 0
call fcn.004033e7
add esp, 0x10
cmp esi, dword [0x420c70]
jge 0x403610
push eax
push ebx
push 0x418c60
push dword [ebp - 0x38]
call fcn.00406de0
mov dword [ebp - 0x38], eax
pop eax
add dword [0x420c80], ebx
sub esi, ebx
test esi, esi
jg 0x40350b
sub esp, 0xc
push 1
call fcn.004033e7
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 [0x7a3530], 0
je 0x40370a
cmp dword [ebp - 0x34], 0
je 0x403678
sub esp, 0xc
push dword [0x420c80]
call fcn.00403150
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.0040316c
add esp, 0x18
test eax, eax
je 0x403705
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jne 0x403705
push eax
push eax
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
push eax
mov eax, dword [0x7a3530]
add eax, 0x1c
push eax
call fcn.00403150
add esp, 0xc
push dword [ebp - 0x18]
push ebx
push 0
push 0xffffffffffffffff
call fcn.004031a5
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 0x40370a
mov dword [0x7a34b0], ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx]
and edx, 1
mov dword [0x7a3510], eax
cmp edx, 1
mov eax, dword [0x7a3520]
sbb eax, 0xffffffff
mov dword [0x7a3520], eax
mov eax, 8
add dword [ebx + eax*8 - 4], ebx
dec eax
jne 0x4036d7
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 0x7a34c0
call fcn.00405fdf
xor edx, edx
pop edi
jmp 0x40370a
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