Function at 0x403ea4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x40b178
sub esp, 0x16c
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x43cc00
mov dword [esp], 0
add eax, 0x3e8
mov dword [0x432850], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x43cc00
call fcn.00407802
sub esp, 0xc
cmp eax, 0xffffffff
mov esi, eax
mov dword [0x40a014], eax
je 0x404284
mov dword [esp + 4], 0x43cc00
mov dword [esp], 0x43bc00
call fcn.00407a3d
push ebx
push ebx
mov dword [esp], 0x43bc00
call fcn.0040764c
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x43d000
call fcn.00407a3d
push ecx
push ecx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
push ebx
push ebx
mov ebx, eax
mov dword [0x40fc44], eax
jmp 0x4040a4
cmp dword [0x43285c], 1
mov dword [esp], 0x40fc50
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
cmovg esi, ebx
mov dword [esp + 4], esi
call fcn.00403a85
test eax, eax
push ecx
push ecx
jne 0x403fc0
mov dword [esp], 1
call fcn.0040399a
jmp 0x40427f
cmp dword [0x43285c], 0
jne 0x40405d
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x40fc50
call fcn.004077a7
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x404071
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x404071
cmp dword [ebp - 0x28], 0x74736e49
jne 0x404071
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x404071
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x404071
or edi, eax
mov edx, dword [0x40fc48]
mov eax, edi
and eax, 2
or dword [0x4327ec], eax
mov eax, dword [ebp - 0x20]
mov dword [0x43285c], edx
cmp eax, ebx
jg 0x40427f
test edi, 8
jne 0x40404d
test edi, 4
jne 0x4040ac
lea ebx, [eax - 4]
inc dword [ebp - 0x150]
cmp esi, ebx
cmova esi, ebx
jmp 0x404071
test edi, 2
jne 0x404071
mov dword [esp], 0
call fcn.0040399a
cmp ebx, dword [0x40fc44]
jge 0x40409c
mov eax, dword [ebp - 0x14c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x40fc50
mov dword [esp], eax
call fcn.00408510
sub esp, 0xc
mov dword [ebp - 0x14c], eax
add dword [0x40fc48], esi
sub ebx, esi
test ebx, ebx
jg 0x403f7f
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.0040399a
cmp dword [0x43285c], 0
je 0x404284
cmp dword [ebp - 0x150], 0
je 0x40410d
mov eax, dword [0x40fc48]
mov dword [esp], eax
call fcn.00403ad1
push eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403a85
test eax, eax
push edx
push edx
je 0x404284
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1c]
jne 0x404284
mov eax, dword [ebp - 0x24]
lea ebx, [ebp - 0x13c]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x417c60], 8
mov dword [0x41817c], 0
mov dword [0x418178], 0
mov dword [0x421808], 0x419800
mov dword [0x421804], 0x419800
push esi
push esi
mov esi, eax
mov dword [esp], ebx
mov dword [0x421800], 0x421800
mov dword [esp + 4], 0x43c400
call fcn.0040785e
push edi
push edi
mov dword [esp], ebx
mov ebx, 0x40b25e
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
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov dword [0x40a010], eax
inc eax
je 0x404284
mov eax, dword [0x43285c]
add eax, 0x1c
mov dword [esp], eax
call fcn.00403ad1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
and edx, 4
cmp edx, 1
sbb edx, edx
and edx, 4
mov dword [0x421810], eax
lea eax, [eax + ecx - 0x1c]
sub eax, edx
mov dword [0x421814], eax
mov eax, dword [ebp - 0x24]
push ebx
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 + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.00403cef
sub esp, 0x10
cmp eax, dword [ebp - 0x24]
jne 0x404284
mov dword [0x43280c], esi
mov eax, dword [esi]
mov edx, dword [ebp - 0x38]
mov dword [0x432854], eax
mov eax, dword [0x432858]
and edx, 1
cmp edx, 1
sbb eax, 0xffffffff
mov dword [0x432858], eax
mov eax, 8
dec eax
add dword [esi + eax*8 + 4], esi
test eax, eax
jne 0x40424c
mov eax, dword [0x421818]
xor ebx, ebx
mov dword [esi + 0x3c], eax
add esi, 4
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], 0x432810
call fcn.004077a7
sub esp, 0xc
jmp 0x404284
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