Function at 0x403e19
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x3e8
mov dword [0x425b8c], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42fc00
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x42fc00
call fcn.00407694
sub esp, 0xc
mov esi, eax
mov dword [0x40a014], eax
mov ebx, 0x40b178
cmp eax, 0xffffffff
je 0x4041c4
mov dword [esp + 4], 0x42fc00
mov dword [esp], 0x42ec00
call fcn.004078bf
push ebx
push ebx
mov dword [esp], 0x42ec00
call fcn.004074f0
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x430000
call fcn.004078bf
push ecx
push ecx
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.KERNEL32.dll_GetFileSize
push ebx
push ebx
mov ebx, eax
mov dword [0x40dc44], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
jmp 0x404018
cmp dword [0x425b98], 1
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
jle 0x403f0c
mov esi, ebx
mov dword [esp + 4], esi
mov dword [esp], 0x40dc50
call fcn.004039fe
push ecx
push ecx
test eax, eax
jne 0x403f33
mov dword [esp], 1
call fcn.00403918
jmp 0x4041bf
cmp dword [0x425b98], 0
jne 0x403fd1
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x40dc50
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040763b
sub esp, 0xc
mov eax, dword [ebp - 0x38]
test eax, 0xfffffff0
jne 0x403fe5
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x403fe5
cmp dword [ebp - 0x28], 0x74736e49
jne 0x403fe5
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x403fe5
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x403fe5
mov edx, dword [0x40dc48]
mov dword [0x425b98], edx
or edi, eax
mov eax, edi
and eax, 2
or dword [0x425b28], eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jg 0x4041bf
test edi, 8
jne 0x403fc0
test edi, 4
jne 0x404020
inc dword [ebp - 0x150]
lea ebx, [eax - 4]
cmp esi, ebx
jbe 0x403fe5
mov esi, ebx
jmp 0x403fe5
test edi, 2
jne 0x403fe5
mov dword [esp], 0
call fcn.00403918
cmp ebx, dword [0x40dc44]
jge 0x404010
mov dword [esp + 8], esi
mov dword [esp + 4], 0x40dc50
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.00408354
sub esp, 0xc
mov dword [ebp - 0x14c], eax
add dword [0x40dc48], esi
sub ebx, esi
test ebx, ebx
jg 0x403ef1
mov dword [esp], 1
call fcn.00403918
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 [0x425b98], 0
je 0x4041c4
cmp dword [ebp - 0x150], 0
je 0x404081
mov eax, dword [0x40dc48]
mov dword [esp], eax
call fcn.00403a49
push eax
mov dword [esp + 4], 4
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.004039fe
push edx
push edx
test eax, eax
je 0x4041c4
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1c]
jne 0x4041c4
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
push esi
push esi
mov esi, eax
mov ecx, 0x415c50
call fcn.004083bc
mov dword [esp + 4], 0x42f400
lea ebx, [ebp - 0x13c]
mov dword [esp], ebx
call fcn.004076ef
push edi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000100
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [0x40a010], eax
mov ebx, 0x40b25e
inc eax
je 0x4041c4
mov eax, dword [0x425b98]
add eax, 0x1c
mov dword [esp], eax
call fcn.00403a49
push ebx
mov dword [0x415cd8], eax
mov edx, dword [ebp - 0x38]
and edx, 4
cmp edx, 1
sbb edx, edx
and edx, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx - 0x1c]
sub eax, edx
mov dword [0x415cdc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.00403c64
sub esp, 0x10
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 eax, dword [ebp - 0x24]
jne 0x4041c4
mov dword [0x425b48], esi
mov eax, dword [esi]
mov dword [0x425b90], eax
mov edx, dword [ebp - 0x38]
and edx, 1
mov eax, dword [0x425b94]
cmp edx, 1
sbb eax, 0xffffffff
mov dword [0x425b94], eax
mov eax, 8
dec eax
add dword [esi + eax*8 + 4], esi
test eax, eax
jne 0x40418c
mov eax, dword [0x415ce0]
mov dword [esi + 0x3c], eax
mov dword [esp + 8], 0x40
add esi, 4
mov dword [esp + 4], esi
mov dword [esp], 0x425b4c
call fcn.0040763b
sub esp, 0xc
xor ebx, ebx
jmp 0x4041c4
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
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4