Function at 0x403283
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x79bc00
push esi
add eax, 0x3e8
push edi
mov dword [0x792ba0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00406737
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [0x40b08c], edi
cmp edi, 0xffffffff
jne 0x4032dd
mov eax, str.Error_launching_installer
jmp 0x403828
push esi
mov esi, 0x79ac00
push esi
call fcn.00406a77
call fcn.00406590
push eax
push 0x79c000
call fcn.00406a77
push 0x68d1b0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [0x68d1b4]
mov ecx, dword [0x68d1b0]
mov ebx, ecx
mov edi, eax
test eax, eax
jl 0x40347e
jg 0x403326
test ecx, ecx
jbe 0x40347e
mov esi, dword [0x792fc4]
neg esi
sbb esi, esi
and esi, 0xffe00
xor eax, eax
add esi, 0x200
cmp edi, eax
jg 0x40334d
jl 0x403348
cmp ebx, esi
jae 0x40334d
mov dword [ebp - 0xc], ebx
jmp 0x403350
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push 0x58d120
call fcn.00403b26
test eax, eax
je 0x403590
mov esi, dword [0x792fc4]
test esi, esi
jne 0x40341e
push 0x20
lea eax, [ebp - 0x44]
push 0x58d120
push eax
call fcn.00407c40
mov eax, dword [ebp - 0x44]
add esp, 0xc
test eax, 0xffffffc0
jne 0x403432
cmp dword [ebp - 0x40], 0xdeadbeef
jne 0x403432
cmp dword [ebp - 0x34], 0x74736e49
jne 0x403432
cmp dword [ebp - 0x38], 0x74666f73
jne 0x403432
cmp dword [ebp - 0x3c], 0x6c6c754e
jne 0x403432
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x68d1a8]
and eax, 2
or dword [0x793040], eax
mov eax, dword [ebp - 0x28]
cmp eax, edi
mov dword [0x792fc4], esi
jg 0x403598
mov ecx, dword [ebp - 0x2c]
jl 0x4033f3
cmp ecx, ebx
ja 0x403598
test byte [ebp + 8], 8
jne 0x4033ff
test byte [ebp + 8], 4
jne 0x40347e
inc dword [ebp - 0x10]
sub ecx, 4
sbb eax, 0
mov edi, eax
xor eax, eax
cmp eax, edi
mov ebx, ecx
jl 0x403432
jg 0x403419
cmp dword [ebp - 0xc], ebx
jbe 0x403432
mov dword [ebp - 0xc], ebx
jmp 0x403432
test byte [ebp + 8], 2
jne 0x403432
push 0
call fcn.0040321e
mov esi, dword [0x792fc4]
pop ecx
cmp edi, dword [0x68d1b4]
jg 0x403457
jl 0x403444
cmp ebx, dword [0x68d1b0]
jae 0x403457
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, 0x58d120
call fcn.00401396
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
add dword [0x68d1a8], ecx
adc dword [0x68d1ac], eax
sub ebx, ecx
sbb edi, eax
test edi, edi
jg 0x40332c
jl 0x40347e
test ebx, ebx
ja 0x40332c
push 1
call fcn.0040321e
xor esi, esi
pop ecx
cmp dword [0x792fc4], esi
je 0x403598
cmp dword [ebp - 0x10], esi
je 0x4034c9
push dword [0x68d1ac]
push dword [0x68d1a8]
call fcn.00403c9f
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.00403b26
test eax, eax
je 0x403598
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x403598
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x792fc4]
add eax, 0x20
push esi
push eax
call fcn.00403c9f
push dword [ebp - 0x30]
or ebx, 0xffffffff
push edi
push esi
push ebx
push ebx
call fcn.0040382f
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov esi, edx
cdq
cmp ecx, eax
jne 0x403598
cmp esi, edx
jne 0x403598
test byte [ebp - 0x44], 1
mov eax, dword [edi]
mov dword [0x792b4c], edi
mov dword [0x792fc0], eax
je 0x403525
inc dword [0x792ba4]
push 8
xor edx, edx
pop eax
xor ecx, ecx
add eax, ebx
adc ecx, ebx
add dword [edi + eax*8 + 4], edi
mov esi, eax
or esi, ecx
jne 0x40352c
test byte [ebp - 0x44], 0x20
mov dword [0x40d108], edx
mov dword [0x40d10c], edx
mov dword [0x40d110], edx
je 0x4037fa
mov dword [ebp - 0xc], 1
mov esi, 0x792bc0
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79bc00
push esi
call fcn.00406a77
push 0x5c
push esi
call fcn.00407b20
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40358b
mov ebx, esi
lea eax, [ebx + 1]
jmp 0x4035a5
push 1
call fcn.0040321e
pop ecx
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 0x403828
mov ebx, eax
inc eax
push 0x2e
push eax
call fcn.00407a60
pop ecx
pop ecx
test eax, eax
jne 0x4035a2
push dword [ebp - 0xc]
push str.._u.dat
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
push esi
call fcn.00406737
mov dword [ebp - 0x14], eax
mov dword [0x40b08c], eax
cmp eax, 0xffffffff
je 0x4032d3
push 0x24
lea eax, [ebp - 0x68]
push eax
call fcn.00403b26
test eax, eax
je 0x403598
mov ebx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x40360a
mov eax, dword [ebp - 0x68]
mov dword [0x68d1b0], eax
mov eax, dword [ebp - 0x64]
mov dword [0x68d1b4], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x403598
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
add eax, 0x24
adc ecx, 0
cmp edx, eax
jne 0x403598
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jne 0x403598
cmp dword [ebp - 0x54], ebx
jne 0x403598
cmp dword [0x40d108], 0
push 0x28
push 0x40
jne 0x403664
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x40d108], eax
jmp 0x403672
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x40d10c]
mov dword [ecx], eax
lea ecx, [eax + 4]
lea edx, [ebp - 0x68]
mov dword [0x40d10c], eax
mov dword [ebp - 8], 0x24
sub edx, ecx
mov bl, byte [edx + ecx]
dec dword [ebp - 8]
mov byte [ecx], bl
inc ecx
cmp dword [ebp - 8], 0
jg 0x403686
and dword [eax], 0
cmp dword [ebp - 0x10], 0
je 0x40373f
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
jl 0x403733
mov ebx, dword [ebp - 0x50]
jg 0x4036c2
test ebx, ebx
jbe 0x403733
jmp 0x4036c2
mov ebx, dword [ebp - 0x50]
sub ebx, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x18]
test eax, eax
jg 0x4036d6
jl 0x4036db
cmp ebx, 0x100000
jb 0x4036db
mov ebx, 0x100000
push ebx
push 0x68d1b8
call fcn.00403b26
test eax, eax
je 0x403590
test byte [ebp + 8], 2
jne 0x4036fc
push 0
call fcn.0040321e
pop ecx
mov ecx, dword [ebp - 8]
push ebx
mov eax, 0x68d1b8
call fcn.00401396
mov dword [ebp - 8], eax
xor eax, eax
add dword [0x68d1a8], ebx
adc dword [0x68d1ac], eax
add dword [ebp - 0x1c], ebx
adc dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jl 0x4036bf
jg 0x403733
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], ebx
jb 0x4036c2
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x48], eax
jne 0x403598
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
jge 0x40374f
inc dword [ebp - 0xc]
jmp 0x403562
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x40375e
push 1
call fcn.0040321e
pop ecx
cmp dword [ebp - 0xc], 1
je 0x4037cb
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79bc00
push esi
call fcn.00406a77
push 0x5c
push esi
call fcn.00407b20
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40378d
mov ebx, esi
lea eax, [ebx + 1]
jmp 0x403795
mov ebx, eax
inc eax
push 0x2e
push eax
call fcn.00407a60
pop ecx
pop ecx
test eax, eax
jne 0x403792
push 1
push str.._u.dat
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
push esi
call fcn.00406737
mov dword [ebp - 0x14], eax
mov dword [0x40b08c], eax
xor ebx, ebx
mov eax, dword [0x40d108]
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [0x40d10c], eax
mov dword [0x40d110], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x3c], eax
mov dword [0x40d118], ebx
mov dword [0x40d11c], ebx
push 1
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x3c], eax
mov eax, 0x792b60
push 0x40
sub edi, eax
mov ecx, eax
pop esi
lea eax, [edi + 4]
mov dl, byte [eax + ecx]
dec esi
mov byte [ecx], dl
inc ecx
test esi, esi
jg 0x40381b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4