Function at 0x403d31
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x40b163
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0x803000
mov dword [esp], 0
add eax, 0x3e8
mov dword [0x7c23b8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x803000
call fcn.004075ae
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
mov dword [0x40a010], eax
je 0x40404f
mov dword [esp + 4], 0x803000
mov dword [esp], 0x7fb000
call fcn.004077e9
push ebx
push ebx
mov dword [esp], 0x7fb000
call fcn.004073f8
push esi
mov dword [esp + 4], eax
mov dword [esp], 0x805000
call fcn.004077e9
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push edx
mov ebx, eax
push edx
mov dword [0x418844], eax
jmp 0x403f18
cmp dword [0x7c23c4], 1
mov dword [esp], 0x418850
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
cmovg esi, ebx
mov dword [esp + 4], esi
call fcn.00403a15
test eax, eax
push ecx
push ecx
jne 0x403e41
mov dword [esp], 1
call fcn.00403979
jmp 0x40404a
cmp dword [0x7c23c4], 0
jne 0x403ed9
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x418850
call fcn.00407553
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x403eeb
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x403eeb
cmp dword [ebp - 0x28], 0x74736e49
jne 0x403eeb
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x403eeb
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x403eeb
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x418848]
and eax, 2
or dword [0x7c2354], eax
mov eax, dword [ebp - 0x20]
mov dword [0x7c23c4], edx
cmp eax, ebx
jg 0x40404a
test byte [ebp + 8], 8
jne 0x403ecc
test byte [ebp + 8], 4
jne 0x403f20
lea ebx, [eax - 4]
inc dword [ebp - 0x40]
cmp esi, ebx
cmova esi, ebx
jmp 0x403eeb
test byte [ebp + 8], 2
jne 0x403eeb
mov dword [esp], 0
call fcn.00403979
cmp ebx, dword [0x418844]
jge 0x403f10
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x418850
mov dword [esp], eax
call fcn.004082bc
sub esp, 0xc
mov dword [ebp - 0x3c], eax
add dword [0x418848], esi
sub ebx, esi
test ebx, ebx
jg 0x403e00
mov dword [esp], 1
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
call fcn.00403979
cmp dword [0x7c23c4], 0
je 0x40404f
cmp dword [ebp - 0x40], 0
je 0x403f7b
mov eax, dword [0x418848]
mov dword [esp], eax
call fcn.00403a61
lea eax, [ebp - 0x1c]
push esi
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403a15
test eax, eax
push edx
push edx
je 0x40404f
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x1c]
jne 0x40404f
mov eax, dword [ebp - 0x24]
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 dword [esp], 0x40
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x7c23c4]
push edx
push edx
add eax, 0x1c
mov dword [esp], eax
call fcn.00403a61
mov eax, dword [ebp - 0x24]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.00403a93
sub esp, 0x10
cmp eax, dword [ebp - 0x24]
jne 0x40404f
mov dword [0x7c2374], esi
mov eax, dword [esi]
mov edx, dword [ebp - 0x38]
mov dword [0x7c23bc], eax
mov eax, dword [0x7c23c0]
and edx, 1
cmp edx, 1
sbb eax, 0xffffffff
mov dword [0x7c23c0], eax
mov eax, 8
dec eax
add dword [esi + eax*8 + 4], esi
test eax, eax
jne 0x403ff8
mov dword [esp + 0xc], 1
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
sub esp, 0x10
add esi, 4
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], 0x7c2378
call fcn.00407553
sub esp, 0xc
jmp 0x40404f
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
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4