Function at 0x403afd
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 [esp + 8], 0x400
mov dword [0x425cf8], eax
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.00407a12
mov edx, 0x40b149
sub esp, 0xc
mov ebx, eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
je 0x403eb6
mov dword [esp + 4], 0x42fc00
mov dword [esp], 0x42ec00
call fcn.0040752a
push ecx
push ecx
mov dword [esp], 0x42ec00
call fcn.004074ae
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x430000
call fcn.0040752a
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x14c], 0
mov ebx, eax
mov dword [0x415cb0], eax
push ecx
mov dword [ebp - 0x150], 0
push ecx
jmp 0x403d0a
cmp dword [0x425d28], 1
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
jle 0x403bf0
mov esi, ebx
mov dword [esp + 4], esi
mov dword [esp], 0x40dc60
call fcn.00403611
test eax, eax
push edx
push edx
jne 0x403c17
mov dword [esp], 1
call fcn.0040365c
jmp 0x403eb1
cmp dword [0x425d28], 0
jne 0x403cb5
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], 0x40dc60
call fcn.0040719e
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x403cc9
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x403cc9
cmp dword [ebp - 0x28], 0x74736e49
jne 0x403cc9
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x403cc9
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x403cc9
or edi, eax
mov edx, dword [0x415cc0]
mov eax, edi
mov dword [0x425d28], edx
and eax, 2
or dword [0x425c68], eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jg 0x403eb1
test edi, 8
jne 0x403ca4
test edi, 4
jne 0x403d12
lea ebx, [eax - 4]
inc dword [ebp - 0x14c]
mov edx, ebx
cmp esi, ebx
ja 0x403ccb
jmp 0x403cc9
test edi, 2
jne 0x403cc9
mov dword [esp], 0
call fcn.0040365c
mov edx, esi
cmp ebx, dword [0x415cb0]
jge 0x403d02
mov eax, dword [ebp - 0x150]
mov dword [esp + 8], edx
mov dword [ebp - 0x154], edx
mov dword [esp + 4], 0x40dc60
mov dword [esp], eax
call fcn.0040819c
mov edx, dword [ebp - 0x154]
sub esp, 0xc
mov dword [ebp - 0x150], eax
add dword [0x415cc0], edx
sub ebx, edx
test ebx, ebx
jg 0x403bd5
mov dword [esp], 1
call fcn.0040365c
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 [0x425d28], 0
je 0x403eb6
cmp dword [ebp - 0x14c], 0
je 0x403d73
mov eax, dword [0x415cc0]
mov dword [esp], eax
call fcn.004035e0
lea eax, [ebp - 0x1c]
push ebx
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403611
test eax, eax
push ecx
push ecx
je 0x403eb1
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp - 0x1c]
jne 0x403eb1
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GlobalAlloc
mov ecx, 0x415cd0
lea esi, [ebp - 0x13c]
push edx
push edx
mov ebx, eax
call fcn.00408208
mov dword [esp + 4], 0x42f400
mov dword [esp], esi
call fcn.004078f4
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], esi
call sub.KERNEL32.dll_CreateFileA
mov edx, 0x40b22f
sub esp, 0x1c
mov dword [0x40a014], eax
inc eax
je 0x403eb6
mov eax, dword [0x425d28]
add eax, 0x1c
mov dword [esp], eax
call fcn.004035e0
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
and edx, 4
mov dword [0x415c90], eax
cmp edx, 1
lea eax, [ecx + eax - 0x1c]
sbb edx, edx
push esi
and edx, 4
mov dword [esp + 8], ebx
sub eax, edx
mov dword [esp + 4], 0
mov dword [0x415ca0], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp], 0xffffffff
call fcn.00403952
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
sub esp, 0x10
cmp eax, dword [ebp - 0x24]
jne 0x403eb6
mov dword [0x425ca8], ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx]
and edx, 1
mov dword [0x425d08], eax
cmp edx, 1
mov eax, dword [0x425d18]
sbb eax, 0xffffffff
mov dword [0x425d18], eax
mov eax, 8
dec eax
add dword [ebx + eax*8 + 4], ebx
test eax, eax
jne 0x403e7e
mov eax, dword [0x415c80]
mov dword [ebx + 0x3c], eax
add ebx, 4
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x425cb8
call fcn.0040719e
xor edx, edx
sub esp, 0xc
jmp 0x403eb6
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