Function at 0x403586
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov edi, 0x453800
push edi
add eax, 0x3e8
push ebx
mov dword [0x445a94], eax
mov dword [0x445a9c], ebx
mov dword [0x445a80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00406054
mov dword [ebp - 0x10], eax
mov dword [0x40b010], eax
cmp eax, 0xffffffff
jne 0x4035eb
mov eax, str.Error_launching_installer
jmp 0x40398d
push esi
push edi
mov esi, 0x451800
push esi
call fcn.004063c1
push esi
call fcn.004066ab
push eax
push 0x454000
call fcn.004063c1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x43b538], eax
mov esi, eax
cmp eax, ebx
jbe 0x403718
mov eax, dword [0x445aa4]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov ebx, esi
cmp esi, eax
jb 0x40363d
mov ebx, eax
push ebx
push 0x429970
call fcn.00403183
test eax, eax
je 0x40387d
cmp dword [0x445aa4], 0
jne 0x4036e1
push 0x24
push 0x429970
lea eax, [ebp - 0x34]
push eax
call fcn.0040600a
mov eax, dword [ebp - 0x34]
test eax, 0xffffff00
jne 0x4036ef
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x4036ef
cmp dword [ebp - 0x24], 0x74736e49
jne 0x4036ef
cmp dword [ebp - 0x28], 0x74666f73
jne 0x4036ef
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x4036ef
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x42196c]
and eax, 2
or dword [0x445b20], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x445aa4], ecx
cmp eax, esi
ja 0x403947
test byte [ebp + 8], 8
jne 0x4036cd
test byte [ebp + 8], 4
jne 0x403716
inc dword [ebp - 4]
inc dword [0x445a80]
lea esi, [eax - 4]
cmp ebx, esi
jbe 0x4036ef
mov ebx, esi
jmp 0x4036ef
test byte [ebp + 8], 2
jne 0x4036ef
push 0
call fcn.0040311f
pop ecx
cmp esi, dword [0x43b538]
jae 0x403708
push ebx
push 0x429970
push dword [ebp - 0xc]
call fcn.00406d88
mov dword [ebp - 0xc], eax
add dword [0x42196c], ebx
sub esi, ebx
jne 0x403622
xor ebx, ebx
test byte [ebp - 0x34], 1
je 0x403724
inc dword [0x445a98]
test byte [ebp - 0x34], 0x40
je 0x403730
inc dword [0x445a9c]
test byte [ebp - 0x34], 0x80
je 0x40373c
inc dword [0x445a90]
cmp dword [0x445a9c], ebx
je 0x4037c2
cmp dword [0x445a98], ebx
jne 0x4037c2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x445a88], eax
push edi
lea eax, [ebp - 0x864]
push eax
mov dword [0x445a8c], ecx
call fcn.004063c1
lea eax, [ebp - 0x864]
push eax
call fcn.004066d8
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.004063c1
lea eax, [ebp - 0x864]
push eax
push 0x4092b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
lea eax, [ebp - 0x864]
push eax
call fcn.00406054
mov dword [0x40b014], eax
cmp eax, 0xffffffff
jne 0x4037c2
cmp dword [0x445a90], ebx
je 0x403947
push 1
call fcn.0040311f
pop ecx
cmp dword [0x445aa4], ebx
je 0x403947
cmp dword [ebp - 4], ebx
je 0x403916
cmp dword [0x445a9c], ebx
je 0x4038f4
cmp dword [0x445a90], ebx
je 0x4038f4
cmp dword [0x445a98], ebx
jne 0x4038f4
mov eax, dword [0x42196c]
add eax, 0xfffffffc
push eax
call fcn.004031df
push 4
push 0x445a34
call fcn.00403183
test eax, eax
je 0x403947
cmp dword [0x40b014], 0xffffffff
je 0x4038f4
mov eax, dword [0x445a88]
mov ecx, dword [0x445a8c]
mov dword [0x43b540], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [0x43b544], ecx
mov ebx, ecx
call fcn.004070f3
pop ecx
pop ecx
test ebx, ebx
ja 0x403864
cmp dword [ebp - 8], 0
jbe 0x4038d8
mov edi, 0x421970
test ebx, ebx
ja 0x40388a
jb 0x403878
cmp dword [ebp - 8], 0x8000
jae 0x40388a
mov esi, dword [ebp - 8]
jmp 0x40388f
push 1
call fcn.0040311f
pop ecx
jmp 0x403947
mov esi, 0x8000
push esi
push edi
call fcn.0040320e
test eax, eax
je 0x403947
test byte [ebp + 8], 2
jne 0x4038ac
push 0
call fcn.0040311f
pop ecx
push esi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0040713a
xor eax, eax
add esp, 0xc
add dword [0x43b530], esi
adc dword [0x43b534], eax
sub dword [ebp - 8], esi
sbb ebx, eax
test ebx, ebx
ja 0x40388a
jb 0x4038d8
cmp dword [ebp - 8], eax
ja 0x403869
push 1
call fcn.0040311f
lea eax, [ebp - 0x64]
push eax
call fcn.00407324
pop ecx
pop ecx
cmp dword [0x445a34], eax
jne 0x403947
xor ebx, ebx
push dword [0x42196c]
call fcn.004031df
push 4
lea eax, [ebp + 8]
push eax
call fcn.00403183
test eax, eax
je 0x403947
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x403947
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x445aa4]
add eax, 0x24
push eax
call fcn.004031df
push ebx
push dword [ebp - 0x20]
push esi
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004032b2
cmp eax, dword [ebp - 0x20]
je 0x40394e
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 0x40398c
mov dword [0x445a30], esi
mov eax, dword [esi]
push 8
mov dword [0x445aa0], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x403961
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.00403199
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x445a40
call fcn.0040600a
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4