Function at 0x4045f0
Capabilities:
Get file size

Disassembly:
sub esp, 0x22c
push ebx
push ebp
xor ebx, ebx
mov dword [0x413168], 0
push esi
mov dword [0x41316c], 0
xor ebp, ebp
mov dword [0x413170], 0
mov dword [esp + 0xc], ebx
mov dword [0x413178], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x800
push 0x456000
add eax, 0xfa0
push ebp
mov dword [0x413180], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push 0x456000
call fcn.00408b20
mov esi, eax
mov dword [0x40e010], esi
cmp esi, 0xffffffff
jne 0x404679
pop esi
pop ebp
mov eax, str.Error_launching_installer
pop ebx
add esp, 0x22c
ret 4
push edi
push 0x456000
push 0x452000
call fcn.00408dc0
push 0x452000
call fcn.00408fa0
push eax
push 0x457000
call fcn.00408dc0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x427198], esi
test esi, esi
je 0x40480a
mov ebx, dword [esp + 0x240]
cmp dword [0x43955c], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x413188
push dword [0x40e010]
call fcn.00408b50
test eax, eax
je 0x4048cd
cmp dword [0x43955c], 0
jne 0x4047ce
push 0x1c
push 0x413188
lea eax, [esp + 0x20]
push eax
call fcn.00408820
mov ecx, dword [esp + 0x18]
test ecx, 0xfffffff0
jne 0x4047dd
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x4047dd
cmp dword [esp + 0x28], 0x74736e49
jne 0x4047dd
cmp dword [esp + 0x24], 0x74666f73
jne 0x4047dd
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x4047dd
cmp byte [0x4131a4], 1
mov eax, dword [0x42719c]
mov dword [0x43955c], eax
jne 0x40479f
cmp byte [0x4131a5], 0x5d
jne 0x40479f
cmp byte [0x4131a6], 0
jne 0x40479f
cmp byte [0x4131a7], 0
jne 0x40479f
cmp byte [0x4131aa], 0
jne 0x40479f
mov dword [esp + 0x14], 1
mov dword [0x41317c], 1
or ebx, ecx
mov eax, ebx
and eax, 2
or dword [0x439640], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
ja 0x4048e7
test bl, 8
jne 0x4047c2
test bl, 4
jne 0x404806
lea esi, [eax - 4]
inc ebp
cmp edi, esi
jbe 0x4047dd
mov edi, esi
jmp 0x4047dd
test bl, 2
jne 0x4047dd
push 0
call fcn.00404530
add esp, 4
cmp esi, dword [0x427198]
jae 0x4047f8
push edi
push 0x413188
push dword [esp + 0x18]
call fcn.00409640
mov dword [esp + 0x10], eax
add dword [0x42719c], edi
sub esi, edi
jne 0x4046be
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4271a0]
test eax, eax
je 0x40481a
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x43955c], 0
mov dword [0x4271a0], 0
je 0x4048e7
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebp, ebp
je 0x40486d
push 0
push 0
push dword [0x42719c]
push dword [0x40e010]
call edi
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40e010]
call fcn.00408b50
test eax, eax
je 0x4048e7
cmp ebx, dword [esp + 0x10]
jne 0x4048e7
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x4271a8
mov esi, eax
call fcn.0040a720
push 0x454000
lea eax, [esp + 0x38]
push eax
call fcn.00408cb0
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x40e014], eax
cmp eax, 0xffffffff
jne 0x4048f9
pop edi
pop esi
pop ebp
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
pop ebx
add esp, 0x22c
ret 4
mov eax, dword [0x4271a0]
test eax, eax
je 0x4048dd
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4271a0], 0
pop edi
pop esi
pop ebp
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
pop ebx
add esp, 0x22c
ret 4
cmp dword [0x41317c], 0
je 0x40490f
push 0x439540
call fcn.00409360
add esp, 4
mov eax, dword [0x43955c]
push 0
add eax, 0x1c
add eax, dword [esp + 0x18]
push 0
push eax
push dword [0x40e010]
call edi
mov ecx, dword [esp + 0x18]
push dword [esp + 0x2c]
not ecx
mov dword [0x427190], eax
and ecx, 4
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub eax, dword [esp + 0x18]
add ecx, 0xffffffe4
push esi
push 0
add eax, ecx
push 0xffffffffffffffff
mov dword [0x427194], eax
call fcn.00404390
cmp eax, dword [esp + 0x2c]
jne 0x4048e7
test byte [esp + 0x18], 1
mov dword [0x439564], esi
mov eax, dword [esi]
mov dword [0x439560], eax
je 0x404978
inc dword [0x439558]
mov ecx, 8
lea eax, [esi + 0x44]
add dword [eax - 8], esi
lea eax, [eax - 8]
dec ecx
jne 0x404980
mov eax, dword [0x42718c]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x439580
call fcn.00408820
mov dword [0x413168], 0
call fcn.00404f30
mov edi, dword [0x439594]
mov ebx, eax
test edi, edi
jle 0x404a2b
mov ebp, dword [0x439590]
xor esi, esi
mov ecx, dword [0x413168]
lea ebx, [ebx]
mov eax, dword [esi + ebp]
sub eax, 0xc9
je 0x4049fb
dec eax
jne 0x404a25
mov eax, dword [esi + ebp + 4]
mov dword [0x413174], 0
test eax, eax
je 0x404a25
mov dword [0x413174], 1
jmp 0x404a25
mov edx, dword [esi + ebp + 4]
mov eax, dword [esi + ebp + 8]
test edx, edx
jne 0x404a0f
add ecx, eax
mov dword [0x413168], ecx
test ebx, ebx
je 0x404a18
cmp edx, 2
jmp 0x404a1b
cmp edx, 1
jne 0x404a25
add ecx, eax
mov dword [0x413168], ecx
add esi, 0x1c
dec edi
jne 0x4049d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 4