Function at 0x4033f1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
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, 0x446c00
push edi
add eax, 0x3e8
push ebx
mov dword [0x43f154], eax
mov dword [0x43f15c], ebx
mov dword [0x43f140], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.00405de4
mov dword [ebp - 0x10], eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
jne 0x403456
mov eax, str.Error_launching_installer
jmp 0x4037f8
push esi
push edi
mov esi, 0x445c00
push esi
call fcn.004060b2
push esi
call fcn.00406345
push eax
push 0x447000
call fcn.004060b2
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x439118], eax
mov esi, eax
cmp eax, ebx
jbe 0x403583
mov eax, dword [0x43f164]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov ebx, esi
cmp esi, eax
jb 0x4034a8
mov ebx, eax
push ebx
push 0x427550
call fcn.00402ff7
test eax, eax
je 0x4036e8
cmp dword [0x43f164], 0
jne 0x40354c
push 0x24
push 0x427550
lea eax, [ebp - 0x34]
push eax
call fcn.00405d9a
mov eax, dword [ebp - 0x34]
test eax, 0xffffff00
jne 0x40355a
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x40355a
cmp dword [ebp - 0x24], 0x74736e49
jne 0x40355a
cmp dword [ebp - 0x28], 0x74666f73
jne 0x40355a
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x40355a
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41f54c]
and eax, 2
or dword [0x43f1e0], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43f164], ecx
cmp eax, esi
ja 0x4037b2
test byte [ebp + 8], 8
jne 0x403538
test byte [ebp + 8], 4
jne 0x403581
inc dword [ebp - 4]
inc dword [0x43f140]
lea esi, [eax - 4]
cmp ebx, esi
jbe 0x40355a
mov ebx, esi
jmp 0x40355a
test byte [ebp + 8], 2
jne 0x40355a
push 0
call fcn.00402f93
pop ecx
cmp esi, dword [0x439118]
jae 0x403573
push ebx
push 0x427550
push dword [ebp - 0xc]
call fcn.004069ea
mov dword [ebp - 0xc], eax
add dword [0x41f54c], ebx
sub esi, ebx
jne 0x40348d
xor ebx, ebx
test byte [ebp - 0x34], 1
je 0x40358f
inc dword [0x43f158]
test byte [ebp - 0x34], 0x40
je 0x40359b
inc dword [0x43f15c]
test byte [ebp - 0x34], 0x80
je 0x4035a7
inc dword [0x43f150]
cmp dword [0x43f15c], ebx
je 0x40362d
cmp dword [0x43f158], ebx
jne 0x40362d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x43f148], eax
push edi
lea eax, [ebp - 0x464]
push eax
mov dword [0x43f14c], ecx
call fcn.004060b2
lea eax, [ebp - 0x464]
push eax
call fcn.0040636c
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.004060b2
lea eax, [ebp - 0x464]
push eax
push str._s.nsisbin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
lea eax, [ebp - 0x464]
push eax
call fcn.00405de4
mov dword [0x40a014], eax
cmp eax, 0xffffffff
jne 0x40362d
cmp dword [0x43f150], ebx
je 0x4037b2
push 1
call fcn.00402f93
pop ecx
cmp dword [0x43f164], ebx
je 0x4037b2
cmp dword [ebp - 4], ebx
je 0x403781
cmp dword [0x43f15c], ebx
je 0x40375f
cmp dword [0x43f150], ebx
je 0x40375f
cmp dword [0x43f158], ebx
jne 0x40375f
mov eax, dword [0x41f54c]
add eax, 0xfffffffc
push eax
call fcn.00403053
push 4
push 0x43f0f4
call fcn.00402ff7
test eax, eax
je 0x4037b2
cmp dword [0x40a014], 0xffffffff
je 0x40375f
mov eax, dword [0x43f148]
mov ecx, dword [0x43f14c]
mov dword [0x439120], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [0x439124], ecx
mov ebx, ecx
call fcn.00406d55
pop ecx
pop ecx
test ebx, ebx
ja 0x4036cf
cmp dword [ebp - 8], 0
jbe 0x403743
mov edi, 0x41f550
test ebx, ebx
ja 0x4036f5
jb 0x4036e3
cmp dword [ebp - 8], 0x8000
jae 0x4036f5
mov esi, dword [ebp - 8]
jmp 0x4036fa
push 1
call fcn.00402f93
pop ecx
jmp 0x4037b2
mov esi, 0x8000
push esi
push edi
call fcn.00403082
test eax, eax
je 0x4037b2
test byte [ebp + 8], 2
jne 0x403717
push 0
call fcn.00402f93
pop ecx
push esi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00406d9c
xor eax, eax
add esp, 0xc
add dword [0x439110], esi
adc dword [0x439114], eax
sub dword [ebp - 8], esi
sbb ebx, eax
test ebx, ebx
ja 0x4036f5
jb 0x403743
cmp dword [ebp - 8], eax
ja 0x4036d4
push 1
call fcn.00402f93
lea eax, [ebp - 0x64]
push eax
call fcn.00406f86
pop ecx
pop ecx
cmp dword [0x43f0f4], eax
jne 0x4037b2
xor ebx, ebx
push dword [0x41f54c]
call fcn.00403053
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402ff7
test eax, eax
je 0x4037b2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4037b2
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x43f164]
add eax, 0x24
push eax
call fcn.00403053
push ebx
push dword [ebp - 0x20]
push esi
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.00403126
cmp eax, dword [ebp - 0x20]
je 0x4037b9
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 0x4037f7
mov dword [0x43f0f0], esi
mov eax, dword [esi]
push 8
mov dword [0x43f160], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4037cc
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.0040300d
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x43f100
call fcn.00405d9a
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4