Function at 0x40333f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x43a800
push 0x400
add eax, 0x3e8
push edi
push 0
mov dword [0x42c270], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00406686
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
mov dword [0x40c030], ebx
jne 0x403399
mov eax, str.Error_launching_installer
jmp 0x403661
mov esi, 0x438800
push edi
push esi
call fcn.00406b96
push esi
call fcn.0040646d
push eax
push 0x43b000
call fcn.00406b96
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [0x422e8c], eax
mov ebx, eax
jbe 0x4034d4
mov esi, dword [0x42c278]
neg esi
sbb esi, esi
and esi, 0x7e00
add esi, 0x200
cmp ebx, esi
jae 0x4033ea
mov esi, ebx
push esi
push 0x40ee80
call fcn.00403a43
test eax, eax
je 0x40361b
cmp dword [0x42c278], 0
jne 0x40349f
push 0x24
lea eax, [ebp - 0x30]
push 0x40ee80
push eax
call fcn.00406641
test dword [ebp - 0x30], 0xfffffe00
jne 0x4034ad
cmp dword [ebp - 0x2c], 0xdeadbeef
jne 0x4034ad
cmp dword [ebp - 0x20], 0x74736e49
jne 0x4034ad
cmp dword [ebp - 0x24], 0x74666f73
jne 0x4034ad
cmp dword [ebp - 0x28], 0x6c6c754e
jne 0x4034ad
mov edx, dword [ebp + 8]
mov eax, dword [0x416e80]
or edx, dword [ebp - 0x30]
mov dword [0x42c278], eax
mov ecx, edx
mov dword [ebp + 8], edx
and ecx, 2
or dword [0x42c320], ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
ja 0x403614
test dl, 8
jne 0x40347e
test dl, 4
jne 0x4034d4
inc dword [0x422e90]
push 0x24
lea eax, [eax + ecx - 0x28]
pop ebx
mov dword [0x416e80], eax
add eax, 0x20
push 0
push eax
mov esi, ebx
call fcn.00403ab6
jmp 0x4034ad
test byte [ebp + 8], 2
jne 0x4034ad
push 0
call fcn.004032db
pop ecx
cmp ebx, dword [0x422e8c]
jae 0x4034c6
push esi
push 0x40ee80
push dword [ebp - 4]
call fcn.00407050
mov dword [ebp - 4], eax
add dword [0x416e80], esi
sub ebx, esi
jne 0x4033ce
test byte [ebp - 0x30], 1
je 0x4034e0
inc dword [0x42c284]
test byte [ebp - 0x30], 0x80
je 0x4034ec
inc dword [0x42c26c]
test byte [ebp - 0x2f], 1
je 0x4034f8
inc dword [0x42c280]
cmp dword [0x42c26c], 0
je 0x403576
cmp dword [0x42c284], 0
jne 0x403576
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.00406b96
lea eax, [ebp - 0x238]
push eax
call fcn.00406498
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00406b96
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push 0x40c018
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x238]
push 3
push 0x80000000
push eax
call fcn.00406686
cmp eax, 0xffffffff
mov dword [0x40c034], eax
jne 0x403576
cmp dword [0x42c280], 0
je 0x403614
push 1
call fcn.004032db
xor ebx, ebx
pop ecx
cmp dword [0x42c278], ebx
je 0x403614
cmp dword [0x422e90], ebx
je 0x4035d6
mov eax, dword [0x416e80]
push ebx
add eax, 0xfffffffc
push eax
call fcn.00403ab6
lea eax, [ebp - 8]
push 4
push eax
call fcn.00403a43
test eax, eax
je 0x403614
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 4]
call fcn.00407050
mov esi, eax
lea eax, [ebp + 8]
push 4
push eax
call fcn.00403a43
test eax, eax
je 0x403614
cmp esi, dword [ebp + 8]
jne 0x403614
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42c278]
add eax, 0x24
push eax
call fcn.00403a9f
push dword [ebp - 8]
push dword [ebp - 0x1c]
push esi
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004036de
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edi, edx
cdq
cmp ecx, eax
jne 0x403614
cmp edi, edx
je 0x403625
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 0x403661
push 1
call fcn.004032db
pop ecx
jmp 0x403614
mov dword [0x42c274], esi
mov eax, dword [esi]
push 8
mov dword [0x42c27c], eax
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x403638
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call fcn.00403a59
mov dword [esi + 0x3c], eax
add esi, 4
push 0x40
push esi
push 0x42c2a0
call fcn.00406641
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4