Function at 0x403243
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, 0x79ac00
push esi
add eax, 0x3e8
push edi
mov dword [0x792860], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00406702
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [0x40b08c], edi
cmp edi, 0xffffffff
jne 0x40329d
mov eax, str.Error_launching_installer
jmp 0x4037e2
push esi
mov esi, 0x799c00
push esi
call fcn.00406a3a
call fcn.00406553
push eax
push 0x79b000
call fcn.00406a3a
push 0x68d190
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [0x68d194]
mov ecx, dword [0x68d190]
mov ebx, ecx
mov edi, eax
test eax, eax
jl 0x40343e
jg 0x4032e6
test ecx, ecx
je 0x40343e
mov esi, dword [0x792c84]
neg esi
sbb esi, esi
and esi, 0xffe00
xor eax, eax
add esi, 0x200
cmp edi, eax
jg 0x40330d
jl 0x403308
cmp ebx, esi
jae 0x40330d
mov dword [ebp - 0xc], ebx
jmp 0x403310
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push 0x58d100
call fcn.00403ae0
test eax, eax
je 0x403550
mov esi, dword [0x792c84]
test esi, esi
jne 0x4033de
push 0x20
lea eax, [ebp - 0x44]
push 0x58d100
push eax
call fcn.00407c50
mov eax, dword [ebp - 0x44]
add esp, 0xc
test eax, 0xffffffc0
jne 0x4033f2
cmp dword [ebp - 0x40], 0xdeadbeef
jne 0x4033f2
cmp dword [ebp - 0x34], 0x74736e49
jne 0x4033f2
cmp dword [ebp - 0x38], 0x74666f73
jne 0x4033f2
cmp dword [ebp - 0x3c], 0x6c6c754e
jne 0x4033f2
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x68d188]
and eax, 2
or dword [0x792d00], eax
mov eax, dword [ebp - 0x28]
mov dword [0x792c84], esi
cmp eax, edi
jg 0x403558
mov ecx, dword [ebp - 0x2c]
jl 0x4033b3
cmp ecx, ebx
ja 0x403558
test byte [ebp + 8], 8
jne 0x4033bf
test byte [ebp + 8], 4
jne 0x40343e
inc dword [ebp - 0x10]
sub ecx, 4
sbb eax, 0
mov edi, eax
xor eax, eax
mov ebx, ecx
cmp eax, edi
jl 0x4033f2
jg 0x4033d9
cmp dword [ebp - 0xc], ebx
jbe 0x4033f2
mov dword [ebp - 0xc], ebx
jmp 0x4033f2
test byte [ebp + 8], 2
jne 0x4033f2
push 0
call fcn.004031d9
mov esi, dword [0x792c84]
pop ecx
cmp edi, dword [0x68d194]
jg 0x403417
jl 0x403404
cmp ebx, dword [0x68d190]
jae 0x403417
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, 0x58d100
call fcn.00401398
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
add dword [0x68d188], ecx
adc dword [0x68d18c], eax
sub ebx, ecx
sbb edi, eax
test edi, edi
jg 0x4032ec
jl 0x40343e
test ebx, ebx
jne 0x4032ec
push 1
call fcn.004031d9
xor esi, esi
pop ecx
cmp dword [0x792c84], esi
je 0x403558
cmp dword [ebp - 0x10], esi
je 0x403489
push dword [0x68d18c]
push dword [0x68d188]
call fcn.00403c59
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.00403ae0
test eax, eax
je 0x403558
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x403558
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x792c84]
add eax, 0x20
push esi
push eax
call fcn.00403c59
push dword [ebp - 0x30]
or ebx, 0xffffffff
push edi
push esi
push ebx
push ebx
call fcn.004037e9
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov esi, edx
cdq
cmp ecx, eax
jne 0x403558
cmp esi, edx
jne 0x403558
test byte [ebp - 0x44], 1
mov eax, dword [edi]
mov dword [0x79280c], edi
mov dword [0x792c80], eax
je 0x4034e5
inc dword [0x792864]
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 0x4034ec
test byte [ebp - 0x44], 0x20
mov dword [0x40d0e8], edx
mov dword [0x40d0ec], edx
mov dword [0x40d0f0], edx
je 0x4037b6
mov dword [ebp - 0xc], 1
mov esi, 0x792880
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79ac00
push esi
call fcn.00406a3a
push 0x5c
push esi
call fcn.00407b30
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40354b
mov ebx, esi
lea eax, [ebx + 1]
jmp 0x403565
push 1
call fcn.004031d9
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 0x4037e2
mov ebx, eax
inc eax
push 0x2e
push eax
call fcn.00407a70
pop ecx
pop ecx
test eax, eax
jne 0x403562
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.00406702
mov dword [ebp - 0x14], eax
mov dword [0x40b08c], eax
cmp eax, 0xffffffff
je 0x403293
push 0x24
lea eax, [ebp - 0x68]
push eax
call fcn.00403ae0
test eax, eax
je 0x403558
mov ebx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x4035ca
mov eax, dword [ebp - 0x68]
mov dword [0x68d190], eax
mov eax, dword [ebp - 0x64]
mov dword [0x68d194], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x403558
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, 0x24
adc ecx, 0
cmp dword [ebp - 0x24], eax
jne 0x403558
cmp dword [ebp - 0x20], ecx
jne 0x403558
cmp dword [ebp - 0x54], ebx
jne 0x403558
cmp dword [0x40d0e8], 0
push 0x28
push 0x40
jne 0x403620
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x40d0e8], eax
jmp 0x40362e
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x40d0ec]
mov dword [ecx], eax
lea ecx, [eax + 4]
lea edx, [ebp - 0x68]
mov dword [0x40d0ec], 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 0x403642
and dword [eax], 0
cmp dword [ebp - 0x10], 0
je 0x4036fb
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
cmp eax, ecx
jl 0x4036ef
mov ebx, dword [ebp - 0x50]
jg 0x40367e
test ebx, ebx
je 0x4036ef
jmp 0x40367e
mov ebx, dword [ebp - 0x50]
sub ebx, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x18]
test eax, eax
jg 0x403692
jl 0x403697
cmp ebx, 0x100000
jb 0x403697
mov ebx, 0x100000
push ebx
push 0x68d198
call fcn.00403ae0
test eax, eax
je 0x403550
test byte [ebp + 8], 2
jne 0x4036b8
push 0
call fcn.004031d9
pop ecx
mov ecx, dword [ebp - 8]
push ebx
mov eax, 0x68d198
call fcn.00401398
mov dword [ebp - 8], eax
xor eax, eax
add dword [0x68d188], ebx
adc dword [0x68d18c], eax
add dword [ebp - 0x1c], ebx
adc dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jl 0x40367b
jg 0x4036ef
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], ebx
jb 0x40367e
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x48], eax
jne 0x403558
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
jge 0x40370b
inc dword [ebp - 0xc]
jmp 0x403522
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x40371a
push 1
call fcn.004031d9
pop ecx
cmp dword [ebp - 0xc], 1
je 0x403787
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79ac00
push esi
call fcn.00406a3a
push 0x5c
push esi
call fcn.00407b30
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x403749
mov ebx, esi
lea eax, [ebx + 1]
jmp 0x403751
mov ebx, eax
inc eax
push 0x2e
push eax
call fcn.00407a70
pop ecx
pop ecx
test eax, eax
jne 0x40374e
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.00406702
mov dword [ebp - 0x14], eax
mov dword [0x40b08c], eax
xor ebx, ebx
mov eax, dword [0x40d0e8]
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [0x40d0ec], eax
mov dword [0x40d0f0], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x3c], eax
mov dword [0x40d0f8], ebx
mov dword [0x40d0fc], 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, 0x792820
push 0x40
pop esi
mov ecx, eax
sub edi, eax
mov dl, byte [edi + ecx + 4]
dec esi
mov byte [ecx], dl
inc ecx
test esi, esi
jg 0x4037d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4