Function at 0x403ef9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x434c00
mov dword [0x42adc0], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x434c00
call fcn.0040789c
mov ebx, eax
sub esp, 0xc
mov dword [0x40a014], eax
cmp ebx, 0xffffffff
mov eax, 0x40b178
je 0x4042a8
mov dword [esp + 4], 0x434c00
mov dword [esp], 0x433c00
call fcn.00407ada
push esi
push esi
xor esi, esi
mov dword [esp], 0x433c00
call fcn.004076f2
push edi
mov dword [esp + 4], eax
mov dword [esp], 0x435000
call fcn.00407ada
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edx
push edx
mov edi, eax
mov dword [0x426d4c], eax
mov dword [ebp - 0x13c], 0
test edi, edi
jle 0x4040b9
cmp dword [0x42adcc], 1
mov dword [esp], 0x412c80
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp ebx, edi
cmovg ebx, edi
mov dword [esp + 4], ebx
call fcn.00403ae5
test eax, eax
push ecx
push ecx
jne 0x40400d
mov dword [esp], 1
call fcn.004039fa
jmp 0x40415e
cmp dword [0x42adcc], 0
jne 0x4040e3
lea eax, [ebp - 0x138]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x412c80
mov dword [esp], eax
call fcn.00407847
mov eax, dword [ebp - 0x138]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x4040f5
cmp dword [ebp - 0x134], 0xdeadbeef
jne 0x4040f5
cmp dword [ebp - 0x128], 0x74736e49
jne 0x4040f5
cmp dword [ebp - 0x12c], 0x74666f73
jne 0x4040f5
cmp dword [ebp - 0x130], 0x6c6c754e
jne 0x4040f5
or dword [ebp + 8], eax
mov ecx, dword [0x426d48]
mov eax, dword [ebp + 8]
mov dword [0x42adcc], ecx
and eax, 2
or dword [0x42ad18], eax
mov eax, dword [ebp - 0x120]
cmp eax, edi
jg 0x40415e
test byte [ebp + 8], 8
jne 0x4040d3
test byte [ebp + 8], 4
je 0x4040d3
mov dword [esp], 1
call fcn.004039fa
cmp dword [0x42adcc], 0
jne 0x404123
jmp 0x40415e
lea edi, [eax - 4]
inc dword [ebp - 0x13c]
cmp ebx, edi
cmova ebx, edi
jmp 0x4040f5
test byte [ebp + 8], 2
jne 0x4040f5
mov dword [esp], 0
call fcn.004039fa
cmp edi, dword [0x426d4c]
jge 0x404116
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x412c80
call fcn.00408610
sub esp, 0xc
mov esi, eax
add dword [0x426d48], ebx
sub edi, ebx
jmp 0x403fc4
cmp dword [ebp - 0x13c], 0
lea edi, [ebp - 0x11c]
je 0x404168
mov eax, dword [0x426d48]
mov dword [esp], eax
call fcn.00403b2d
push eax
mov dword [esp + 4], 4
mov dword [esp], edi
call fcn.00403ae5
test eax, eax
push edx
push edx
je 0x40415e
cmp esi, dword [ebp - 0x11c]
je 0x404168
mov eax, 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
jmp 0x4042a8
mov eax, dword [ebp - 0x124]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
push ecx
mov ecx, 0x426cc0
mov ebx, eax
call fcn.0040867c
mov dword [esp + 4], 0x434400
mov dword [esp], edi
call fcn.004078f8
push esi
push esi
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], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov dword [0x40a010], eax
inc eax
jne 0x4041ed
mov eax, 0x40b25e
jmp 0x4042a8
mov eax, dword [0x42adcc]
add eax, 0x1c
mov dword [esp], eax
call fcn.00403b2d
push edx
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x120]
mov dword [0x426d54], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
and edx, 4
mov dword [esp], 0xffffffff
cmp edx, 1
lea eax, [eax + ecx - 0x1c]
sbb edx, edx
and edx, 4
sub eax, edx
mov dword [0x426d50], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], eax
call fcn.00403d4a
sub esp, 0x10
cmp eax, dword [ebp - 0x124]
jne 0x40415e
test byte [ebp - 0x138], 1
mov dword [0x42ad40], ebx
mov eax, dword [ebx]
mov dword [0x42adc4], eax
je 0x404272
inc dword [0x42adc8]
mov eax, 9
dec eax
je 0x404280
add dword [ebx + eax*8 - 4], ebx
jmp 0x404277
mov eax, dword [0x426d58]
add ebx, 4
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x42ad80
call fcn.00407847
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4