Function at 0x40334a
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, 0x7a8800
push esi
add eax, 0x3e8
push edi
mov dword [0x799580], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00406923
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [0x40c08c], edi
cmp edi, 0xffffffff
jne 0x4033a4
mov eax, str.Error_launching_installer
jmp 0x4038ed
push esi
mov esi, 0x7a6800
push esi
call fcn.00406c86
call fcn.00406759
push eax
push 0x7a9000
call fcn.00406c86
push 0x68edb0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [0x68edb4]
mov ecx, dword [0x68edb0]
mov ebx, ecx
mov edi, eax
test eax, eax
jl 0x403545
jg 0x4033ed
test ecx, ecx
je 0x403545
mov esi, dword [0x799da4]
neg esi
sbb esi, esi
and esi, 0xffe00
xor eax, eax
add esi, 0x200
cmp edi, eax
jg 0x403414
jl 0x40340f
cmp ebx, esi
jae 0x403414
mov dword [ebp - 0xc], ebx
jmp 0x403417
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push 0x58ed20
call fcn.00403bf4
test eax, eax
je 0x403657
mov esi, dword [0x799da4]
test esi, esi
jne 0x4034e5
push 0x20
lea eax, [ebp - 0x44]
push 0x58ed20
push eax
call fcn.00407e20
mov eax, dword [ebp - 0x44]
add esp, 0xc
test eax, 0xffffffc0
jne 0x4034f9
cmp dword [ebp - 0x40], 0xdeadbeef
jne 0x4034f9
cmp dword [ebp - 0x34], 0x74736e49
jne 0x4034f9
cmp dword [ebp - 0x38], 0x74666f73
jne 0x4034f9
cmp dword [ebp - 0x3c], 0x6c6c754e
jne 0x4034f9
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x68eda8]
and eax, 2
or dword [0x799e20], eax
mov eax, dword [ebp - 0x28]
mov dword [0x799da4], esi
cmp eax, edi
jg 0x40365f
mov ecx, dword [ebp - 0x2c]
jl 0x4034ba
cmp ecx, ebx
ja 0x40365f
test byte [ebp + 8], 8
jne 0x4034c6
test byte [ebp + 8], 4
jne 0x403545
inc dword [ebp - 0x10]
sub ecx, 4
sbb eax, 0
mov edi, eax
xor eax, eax
mov ebx, ecx
cmp eax, edi
jl 0x4034f9
jg 0x4034e0
cmp dword [ebp - 0xc], ebx
jbe 0x4034f9
mov dword [ebp - 0xc], ebx
jmp 0x4034f9
test byte [ebp + 8], 2
jne 0x4034f9
push 0
call fcn.004032e0
mov esi, dword [0x799da4]
pop ecx
cmp edi, dword [0x68edb4]
jg 0x40351e
jl 0x40350b
cmp ebx, dword [0x68edb0]
jae 0x40351e
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, 0x58ed20
call fcn.00401398
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
add dword [0x68eda8], ecx
adc dword [0x68edac], eax
sub ebx, ecx
sbb edi, eax
test edi, edi
jg 0x4033f3
jl 0x403545
test ebx, ebx
jne 0x4033f3
push 1
call fcn.004032e0
xor esi, esi
pop ecx
cmp dword [0x799da4], esi
je 0x40365f
cmp dword [ebp - 0x10], esi
je 0x403590
push dword [0x68edac]
push dword [0x68eda8]
call fcn.00403d6f
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.00403bf4
test eax, eax
je 0x40365f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x40365f
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x799da4]
add eax, 0x20
push esi
push eax
call fcn.00403d6f
push dword [ebp - 0x30]
or ebx, 0xffffffff
push edi
push esi
push ebx
push ebx
call fcn.004038f4
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov esi, edx
cdq
cmp ecx, eax
jne 0x40365f
cmp esi, edx
jne 0x40365f
test byte [ebp - 0x44], 1
mov eax, dword [edi]
mov dword [0x79952c], edi
mov dword [0x799da0], eax
je 0x4035ec
inc dword [0x799584]
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 0x4035f3
test byte [ebp - 0x44], 0x20
mov dword [0x40ed08], edx
mov dword [0x40ed0c], edx
mov dword [0x40ed10], edx
je 0x4038c1
mov dword [ebp - 0xc], 1
mov esi, 0x7995a0
push dword [0x40c08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7a8800
push esi
call fcn.00406c86
push 0x5c
push esi
call fcn.00407cf5
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x403652
mov ebx, esi
lea eax, [ebx + 2]
jmp 0x40366e
push 1
call fcn.004032e0
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 0x4038ed
mov ebx, eax
add eax, 2
push 0x2e
push eax
call fcn.00407cce
pop ecx
pop ecx
test eax, eax
jne 0x403669
push dword [ebp - 0xc]
push str.._u.dat
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
push esi
call fcn.00406923
mov dword [ebp - 0x14], eax
mov dword [0x40c08c], eax
cmp eax, 0xffffffff
je 0x40339a
push 0x24
lea eax, [ebp - 0x68]
push eax
call fcn.00403bf4
test eax, eax
je 0x40365f
mov ebx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x4036d3
mov eax, dword [ebp - 0x68]
mov dword [0x68edb0], eax
mov eax, dword [ebp - 0x64]
mov dword [0x68edb4], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40365f
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, 0x24
adc ecx, 0
cmp dword [ebp - 0x24], eax
jne 0x40365f
cmp dword [ebp - 0x20], ecx
jne 0x40365f
cmp dword [ebp - 0x54], ebx
jne 0x40365f
cmp dword [0x40ed08], 0
push 0x28
push 0x40
jne 0x403729
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x40ed08], eax
jmp 0x403737
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x40ed0c]
mov dword [ecx], eax
lea ecx, [eax + 4]
lea edx, [ebp - 0x68]
mov dword [0x40ed0c], 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 0x40374b
and dword [eax], 0
cmp dword [ebp - 0x10], 0
je 0x403804
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 0x4037f8
mov ebx, dword [ebp - 0x50]
jg 0x403787
test ebx, ebx
je 0x4037f8
jmp 0x403787
mov ebx, dword [ebp - 0x50]
sub ebx, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x18]
test eax, eax
jg 0x40379b
jl 0x4037a0
cmp ebx, 0x100000
jb 0x4037a0
mov ebx, 0x100000
push ebx
push 0x68edb8
call fcn.00403bf4
test eax, eax
je 0x403657
test byte [ebp + 8], 2
jne 0x4037c1
push 0
call fcn.004032e0
pop ecx
mov ecx, dword [ebp - 8]
push ebx
mov eax, 0x68edb8
call fcn.00401398
mov dword [ebp - 8], eax
xor eax, eax
add dword [0x68eda8], ebx
adc dword [0x68edac], eax
add dword [ebp - 0x1c], ebx
adc dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jl 0x403784
jg 0x4037f8
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], ebx
jb 0x403787
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x48], eax
jne 0x40365f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
jge 0x403814
inc dword [ebp - 0xc]
jmp 0x403629
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x403823
push 1
call fcn.004032e0
pop ecx
cmp dword [ebp - 0xc], 1
je 0x403892
push dword [0x40c08c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7a8800
push esi
call fcn.00406c86
push 0x5c
push esi
call fcn.00407cf5
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x403852
mov ebx, esi
lea eax, [ebx + 2]
jmp 0x40385c
mov ebx, eax
add eax, 2
push 0x2e
push eax
call fcn.00407cce
pop ecx
pop ecx
test eax, eax
jne 0x403857
push 1
push str.._u.dat
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
push esi
call fcn.00406923
mov dword [ebp - 0x14], eax
mov dword [0x40c08c], eax
xor ebx, ebx
mov eax, dword [0x40ed08]
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [0x40ed0c], eax
mov dword [0x40ed10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x3c], eax
mov dword [0x40ed18], ebx
mov dword [0x40ed1c], 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, 0x799540
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 0x4038df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4